RHEL安装源问题
ReRHEL安装源问题
解决方案。
1.卸载rhel的默认安装的yum包
rpm -qa|grep yum
rpm -qa|grep yum|xargs rpm -e --nodeps
2.下载新的yum包
wget
http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.x86_64.rpm
wget
http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/yum-3.2.22-39.el5.centos.noarch.rpm
wget
http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm
并且安装之
rpm -ivh yum-*
注意:yum和yum-fastestmirror相互依赖,所以同时安装即可。
3.下载yum的配置源
wget
http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo
把CentOS-Base.repo复制到/etc/yum.repos.d/目录下
4.运行
yum makecache
www.mobiledy.com
赞0
踩0