中國國內的Centos yum源及rpm倉庫

來源:互聯網
上載者:User

中國國內的Centos yum源及rpm倉庫

yum search fastestmirror
yum install yum-fastestmirror* -y
yum update yum*

yum update kernel*
yum update

CentOS
中國科學技術大學 USTC mirror(每小時更新一次)

http://centos.ustc.edu.cn/

cd /etc/yum.repos.d
mv CentOS-Base.repo  CentOS-Base.repo.save-`date +%F`
wget http://centos.ustc.edu.cn/CentOS-Base.repo.5
mv CentOS-Base.repo.5 CentOS-Base.repo
centos 4:
cd /etc/yum.repos.d
mv CentOS-Base.repo  CentOS-Base.repo.save
wget http://centos.ustc.edu.cn/CentOS-Base.repo

sohu開源鏡像站
http://mirrors.sohu.com/help/centos.html
wget http://mirrors.sohu.com/help/CentOS-Base-sohu.repo
yum makecache
產生緩衝

網易開源鏡像站

http://mirrors.163.com/.help/centos.html

wget http://mirrors.163.com/.help/CentOS-Base-163.repo
yum makecache
產生緩衝

* rpmforge:

http://dag.wieers.com/rpm/FAQ.php#B4

http://dag.wieers.com/rpm/packages/rpmforge-release/

#  Red Hat Enterprise Linux 5 / i386:

rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
# Red Hat Enterprise Linux 5 / x86_64:

rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS//rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
# Red Hat Enterprise Linux 4 / i386:

rpm -Uhv http://apt.sw.be/redhat/el4/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el4.rf.i386.rpm

刪除 32 位組件:

yum remove \*.i\?86

要防止 32 位元組件在未來更新時被安裝,請編輯你的 /etc/yum.conf 並加入以下一行:

exclude = *.i?86
SourceAddress :http://veryi.com/w/327.html

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.