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
 
原创文章,转载请注明: 转载自素食勤俭敬老孝慈