LINUX下YUM源配置

  • A+
所属分类:运维教程

#cd /etc/yum.repos.d/

#rm -rf *

#wget https://birdteam.net/wp-content/uploads/2014/04/CentOS-Base.repo_.tar.gz

#tar xvf CentOS-Base.repo_.tar.gz

#yum clean all

#yum check-update

CentOS-Base.repo的内容如下:

[base]

name=CentOS-5 - Base

baseurl=http://centos.ustc.edu.cn/centos/5/os/$basearch/

gpgcheck=1

gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#released updates

[update]

name=CentOS-5 - Updates

baseurl=http://centos.ustc.edu.cn/centos/5/updates/$basearch/

gpgcheck=1

gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#packages used/produced in the build but not released

[addons]

name=CentOS-5 - Addons

baseurl=http://centos.ustc.edu.cn/centos/5/addons/$basearch/

gpgcheck=1

gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#additional packages that may be useful

[extras]

name=CentOS-5 - Extras

baseurl=http://centos.ustc.edu.cn/centos/5/extras/$basearch/

gpgcheck=1

gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#additional packages that extend functionality of existing packages

[centosplus]

name=CentOS-5 - Plus

baseurl=http://centos.ustc.edu.cn/centos/5/centosplus/$basearch/

gpgcheck=1

enabled=0

gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#contrib - packages by Centos Users

[contrib]

name=CentOS-5 - Contrib

baseurl=http://centos.ustc.edu.cn/centos/5/contrib/$basearch/

gpgcheck=1

enabled=0

gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#packages in testing

[testing]

name=CentOS-5 - Testing

baseurl=http://centos.ustc.edu.cn/centos/5/testing/$basearch/

gpgcheck=1

enabled=0

gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

yum update后效果:

LINUX下YUM源配置

  • 我的微博
  • 这是微博的扫一扫
  • weinxin
  • 微信公众
  • 微信公众号扫一扫
  • weinxin

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

目前评论:76   其中:访客  72   博主  4

    • avatar 鲜用找娇地辆是梦懊桨移抡瀑骨笨斗闯蹈 9

      签到成功!签到时间:今日的上午8:15:03,每日打卡,生活更精彩哦!

      • avatar 汉张浇仲拍什蔡陆誓段撑皇梢映挥憾称霉 9

        签到成功!签到时间:今日的上午7:33:03,每日打卡,生活更精彩哦!

        • avatar 幸翱秸佬妹景谱醚腾炙掠诔劣珊头惶杜医 9

          签到成功!签到时间:今日的上午5:15:32,每日打卡,生活更精彩哦!

          • avatar 哨堪幻蒙氨诚捎挥庇蓟惫言乌辆肇硬乃倩 9

            签到成功!签到时间:今日的上午4:52:03,每日打卡,生活更精彩哦!

            • avatar 挥旨浅春赝腹确谠佑纶交老讲喂芳吧由谭 9

              签到成功!签到时间:今日的上午4:46:03,每日打卡,生活更精彩哦!

              • avatar 乜概傧鹤鞠嗜口都悦沟握槐颜淄苯也油患 9

                签到成功!签到时间:今日的上午4:04:16,每日打卡,生活更精彩哦!

                • avatar 坠该掣绞茸倜刭鸭步揭靠蹦何此萍藤芈氏 9

                  签到成功!签到时间:今日的上午1:49:43,每日打卡,生活更精彩哦!

                  • avatar 圆目型鼓揭寡磁忱稚某膛狼平募奥婆诳忠 9

                    签到成功!签到时间:今日的上午12:23:11,每日打卡,生活更精彩哦!

                    • avatar 卜搅谟俨景兜耙不奥孕可棕于捣叹戏壳匀 9

                      签到成功!签到时间:今日的下午11:54:22,每日打卡,生活更精彩哦!

                      • avatar 烤梦挪邪聊识颓聊团坏匆烫押示洗旧财讼 9

                        签到成功!签到时间:今日的下午10:20:01,每日打卡,生活更精彩哦!