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/

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

发表评论

  • 37 Responses to “centos5系统更新 yum源”
    • FsbxAniny

      viagra kaufen per nach nahme <a href="http://genericrxxx.com/#">viagra auf rechnung bestellen</a> viagra spain http://genericrxxx.com/ - kjГёp prozac og viagra her ’

      回复
    • Nlbxprest

      cheap. generic cialisis <a href="http://cialijomen.com/#">which is better cialis or levitra</a> buy cialis pils on uk http://cialijomen.com/ - purchase cialis ’

      回复
    • AqbvAniny

      low price generic viagra <a href="http://acialaarx.com/#">discount viagra</a> viagra prescrition for walgreens http://acialaarx.com/ - viagra 30 day free trial ’

      回复
    • Kbctboop

      buy real cialis <a href="http://mycialedst.com/#">canada cialis with dapoxetine</a> generic cialis 20mg x 15 tabs http://mycialedst.com/ - geniric cialis ’

      回复
    • Jvcxblafe

      questions about viagra <a href="http://fmedrx.com/#">viagra onlline</a> where can i get a prescription for viagra in milw. wi. online super viagra australia <a href="http://edabcrx.com/#">viagra supper</a> viagra gold bestellen can you buy viagra over the counter in the uk <a href="http://abcrxmed.com/#">viagra</a> cheap viagra 50 mg viagra with dapoxetine pills <a href="http://cialedrx.com/#">viagra super</a> viagra best price cost of viagra without insurance <a href="http://hitrxmenvia.com/#">legal viagra</a> buy generic viagra through pay pal

      回复
    • Fgnhprest

      order viagra sydney australia <a href="http://ltdviagragogo.com/#">order viagra in australia</a> viagra 25mg no prescription viagra on line purchase <a href="http://hdgenericviagraxk.com/#">various kinds of viagra</a> viagra pay pal how long does viagra 100mg last? <a href="http://buygenericviarga.com/#">overnight generic viagra</a> alternative ti viagra viagra fedex overnight <a href="http://buyhdpillvia.com/#">viagra cialis levitra sample pack</a> viagra plus dapoxetine cheap viagra on line in aus <a href="http://genericviagrix.com/#">buy viagra cheap online australia</a> but viagra online

      回复
    • Nlbxprest

      generic viagra supplier india <a href="http://viashoprx.com/#">buy viagra without a script</a> viagra for women viagra online pharmacy <a href="http://xviagarrx.com/#">viagra distributors</a> dapoxetine and viagra buy viagra super force <a href="http://viagraviagria.com/#">buy viagra with paypal uk</a> best viagra sale sites viagra for premature ejaculation treatment <a href="http://asgenviagria.com/#">viagra with prescription online</a> viagra aus generic viagra without perscription <a href="http://viagengen.com/#">viagra chewing gum</a> buying egypt viagra

      回复
    • FsfAniny

      professional essay writing services <a href="https://essayhelpbgs.com/#">college essays edited</a> essay writing my friend

      回复
    • Kwgdboop

      help writing an article <a href="https://researchpaperssfk.com/#">thesis writing services</a> research paper health

      回复
    • Dvscprest

      college entry essay <a href="https://dissertationhelpvfh.com/#">field research paper</a> essay journal

      回复
    • FqfAniny

      maths homework help online <a href="https://essaywritingservicesjy.com/#">college essays 500 words</a> help me write

      回复
    • Fgsprest

      the art of essay writing <a href="https://writemypaperbuyhrd.com/#">writing a speech for a wedding</a> coursework phd

      回复
    • Jgscblafe

      help with my algebra homework <a href="https://thesisbyd.com/#">argumentative speeches</a> research paper key points

      回复
    • FnrdAniny

      canadian pharmacy viagra for cheap <a href="https://llviabest.com/#">viagra cheap</a> viagra in los angeles

      回复
    • FnsbAniny

      algebra help <a href="https://customessaywriterbyz.com/#">custom research papers reviews</a> essay online store reviews

      回复
    • FtghAniny

      ppt on essay writing <a href="https://thesiswritinghelpsjj.com/#">writing a research paper proposal</a> successful college essays

      回复
    • FmsgAniny

      viagra in deutschland rezeptfrei <a href="https://siviagmen.com/#">viagra u slobodnoj prodaji</a> contraindicaciones del consumo de viagra

      回复
    • Kbrgboop

      viagra brand coupon <a href="https://miraclevigra.com/#">how much is sildenafil 50 mg</a> how can i get viagra over the counter

      回复
    • FnrhAniny

      bying viagra uk <a href="https://genqpviag.com/#">viagra newsletter sign up</a> cheap viagra in us

      回复
    • Dbsfprest

      canada generic viagra price <a href="https://lightvigra.com/#">cost of generic viagra in mexico</a> viagra otc us

      回复
    • Fdbvprest

      viagra cheap canadian pharmacy <a href="https://hopeviagrin.com/#">canada viagra online</a> where to buy viagra otc

      回复
    • FbsbAniny

      viagra chf <a href="https://genericrxxx.com/#">my viagra has stopped working</a> cuando no usar viagra

      回复
    • Jsweblafe

      how much is a viagra prescription <a href="https://mygoviagar.com/#">discount viagra from india</a> sildenafil pills sale

      回复
    • FevbAniny

      newest viagra <a href="https://wowviaprice.com/#">wowviaprice.com</a> cheap prices for viagra

      回复
    • NorbertGot

      erectile creams walgreens
      <a href=https://besterectiledysfunctionpills.com/#>erectile dysfunction drugs</a>
      soma erectile dysfunction
      <a href="https://besterectiledysfunctionpills.com/">erectile dysfunction treatment</a>
      erectile medicine

      回复
    • can you buy viagra over the counter uk

      Cost of sildenafil 30 tablets <a href="https://hopeviagrin.com/">https://hopeviagrin.com</a> viagra online cost

      回复
    • Kmrfboop

      can i get viagra from chemist <a href="https://purevigra.com/#">https://purevigra.com/</a> is viagra illegal in china

      回复
    • FbsgAniny

      cheap viagra brisbane <a href="https://buybuyviamen.com/#">viagra drugs online</a> viagra flomax drug interactions

      回复
    • Devkprest

      walgreen viagra <a href="https://paradiseviagira.com/#">online generic viagra sales</a> where to buy viagra with no prescription

      回复
    • Frbhprest

      generic viagra\' <a href="https://paradiseviagira.com/#">https://paradiseviagira.com/</a> grapefruit and viagra

      回复
    • FevbAniny

      viagra sales canada <a href="https://wowviaprice.com/#">cheap viagra generic 100mg</a> viagra melbourne

      回复
    • FhsbAniny

      cialis e viagra confronto <a href="https://buybuyviamen.com/#">https://buybuyviamen.com</a> el viagra para hombres sirve para las mujeres

      回复
    • Jivhblafe

      effet du viagra temps <a href="https://purevigra.com/#">average age start viagra</a> viagra good for prostate

      回复
    • KmrfAniny

      get viagra online http://usggrxmed.com/ <a href="http://usggrxmed.com/#">best place to buy generic viagra</a> viagra india generic

      回复
    • JildcAniny

      viagra online no prior prescription http://fmedrx.com/ <a href="http://fmedrx.com/#">buy viagra online no prescription</a> generic viagra reviews

      回复
    • is viagra covered by insurance

      Brittle hair and nails are two common findings among people with iron-deficiency anemia.

      <a href="https://saleviabuy.com/">https://saleviabuy.com</a> how to buy viagra

      回复
    • Stephenpeaky

      viagra prescription <a href=" http://sild100fast.com/# ">viagra without prescription</a> viagra from canada

      回复