中国国内的Centos yum源及rpm仓库

中国国内的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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值