centos5系统更新 yum源

各大镜像站只有最新版本目录有内容,其他版本目录下仅有readme文件

下载的CentOS-Base.repo文件,放到/etc/yum.repos.d/下都用不了

readme文件中发现http://vault.centos.org/网站是有各个版本镜像的

备份原来的文件

mv  /etc/yum.repos.d/CentOS-Base.repo   /etc/yum.repos.d/CentOS-Base.repo.backup

重新编辑yum源配置文件 写入如下内容 本文档以5.5版本为例 ,如是其他版本如5.8 ,可以利用txt记事本 查找替换 把5.5替换为对应的版本即可

centos5系统更新 yum源

vi /etc/yum.repos.d/CentOS-Base.repo

# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the 
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever – Base
baseurl=http://vault.centos.org/5.5/os/i386/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
#released updates 
[updates]
name=CentOS-$releasever – Updates
baseurl=http://vault.centos.org/5.5/updates/i386/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever – Addons
baseurl=http://vault.centos.org/5.5/addons/i386/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
#additional packages that may be useful
[extras]
name=CentOS-$releasever – Extras
baseurl=http://vault.centos.org/5.5/extras/i386/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever – Plus
baseurl=http://vault.centos.org/5.5/centosplus/i386/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
#contrib – packages by Centos Users
[contrib]
name=CentOS-$releasever – Contrib
baseurl=http://vault.centos.org/5.5/contrib/i386/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

保存文件后,运行yum clean all   yum makecache

此教程来自固定链接:http://www.rakbuluo.com/p22/

原文链接:,转发请注明来源!

发表评论

要发表评论,您必须先登录

  • 77 Responses to “centos5系统更新 yum源”
    • Nbmoprest

      cialis low prices <a href="https://buycialisxz.com/ ">buy low dose cialis online </a> cialis generic shopping

    • Fjjuprest

      viagra coupon walgreens <a href="http://viagraonlinejc.com/ ">does viagra help with premature ejaculation </a> which is better cialis or viagra

    • Kndnboop

      female viagra pills <a href="http://viagratx.com/ ">substitutes for viagra</a> cheap viagra for sale

    • cheapest viagra online kfndcd

      canada pharmacy for cialis <a href="http://edpharmacystore.com/">Continued</a> pharmacy rx one
      <a href=http://edpharmacystore.com/>total stranger</a>

    • FqbbAniny

      cash loans by phone <a href="http://ascashapply.com/ ">can i do a cash advance on my best buy credit card</a> quick easy cash loans

    • AhbzAniny

      online payday loans legal in michigan <a href="http://daymoneygo.com/ ">quick reliable payday loans</a> login payday loans

    • Jbnvblafe

      state of michigan cash advance laws <a href="http://samcash21.com/ ">sample of cash loan agreement</a> pa cash advance loans

    • Nbnhprest

      sildenafil 100mg purchase <a href="http://vigedon.com/ ">http://vigedon.com/ </a> best site to buy viagra

    • Fbsgprest

      cialis 20mg cost? <a href="http://llecialisjaw.com/ ">max cialis dose </a> how to order cialis

    • Abcfbopinnots

      viagra sales canada <a href="http://viagriyvik.com/ ">viagra australia mastercard </a> buy viagra with no perscription

    • Kvaxboop

      atlanta cash advance loans <a href="http://rirocash.com/ ">troy ohio cash advances</a> cash loan for tax refund

    • JbbnAniny

      los hipertensos pueden tomar cialis <a href="http://ljcialishe.com/ ">cialis 2.5mg τιμη</a> cialis kaç mg kullanılmalı

    • LabxAniny

      cialis nz online <a href="https://jecialisbn.com/ ">cialis apres infarctus</a> cialis internet

    • KuikIdovE

      viagra order <a href="http://viagerkr.com/ ">buying viagra in ireland</a> generic viagra paypal

    • FqhhAniny

      herbals <a href="http://happyrxpharmacy21.com/ ">walmart pharmacy price check</a> canadadrugsonline

    • AhkdAniny

      vardenafil <a href="http://storerxpharmcanada.com/ ">online medicine order discount</a> northwest pharmaceuticals canada

    • price for cialis qmiwnm

      buy brand cialis online canada <a href=http://www.canada1drugstore.com/tadalafil/>viagra usa</a> how to get viagra without a prescription
      <a href="http://www.canada1drugstore.com/tadalafil/">kamagra gel</a> cheap canadian viagra

    • Jbnbblafe

      cialis pharmacy online <a href="http://online21rxon.com/ ">erectile dysfunction pills</a> health canada drug database

    • Aqcfbopinnots

      indian cialis <a href="http://cialisvja.com/ ">brandcialis</a> cheap original cialis

    • Nncsprest

      300 mg viagra <a href="http://lightvigra.com/ ">buy viagra through paypal</a> buy generic viagra online usa

    • Fvfcprest

      price of viagra <a href="http://hopeviagrin.com/ ">viagra 100mg side effects</a> brand viagra overnight

    • Kbcxboop

      allergy <a href="http://xuypharmacyonline.com/">shoppers drug mart canada</a> walmart pharmacy viagra

    • JbbvAniny

      drugs from canada <a href="http://canadianpharmnorx.com/ ">online pharmacy canada</a> fda approved canadian online pharmacies

    • LbsxAniny

      price pro pharmacy canada <a href="https://ssviagriia.com/ ">viagra for sale in canada</a> cheap canadian drugs

    • Jnscblafe

      viagra <a href="http://erectilejyzd.com/index.php?called=terms">viagra generic reviews</a> •viagra http://erectilejyzd.com/index.php?called=terms - viagra, generic ’

    • Fhnhprest

      aarp recommended canadian pharmacies <a href="https://canadianpharmacy-yy.com/">mexican online pharmacies</a> canadian pharmacy without prescription https://canadianpharmacy-yy.com/ - Diamox ’

    • Charlesedity

      canadian pharmacy and cialis <a href="https://humanlove.stream/wiki/Guide_On_How_To_Overcome_Diabetes_Easily">canadian pharmacy and viagra</a> supermarket near me <a href=https://www.rcrc-resilience-southeastasia.org/members/hendrix88chaney/activity/415555/>how to use viagra</a> canadian.cialis
      canada pills <a href="https://www.pcb.its.dot.gov/PageRedirect.aspx?redirectedurl=http://www.filedropper.com/thinkingaboutefficientfactorsofchoosingacanadianpharmacysudfc">cheap generic drugs</a> viagra without a doctor prescription in canada <a href=http://forum188.net/member.php?action=profile&uid=42277>buy viagra internet</a> canadian prescription drugstore
      cialis from.canada <a href="https://bookmarking.stream/story.php?title=leading-tips-to-solve-any-hairy-situation-3#discuss">viagra side effects</a> viagra 100 mg <a href=http://www.astro.wisc.edu/?URL=lookbook.nu/user/8758380-Butcher>cialis for sale</a> ed pills online
      cost of viagra in canada