分类: LINUX
2010-04-15 10:42:02
/*先查询一下 RHEL5 中YUM的相关包,然后逐个卸载*/ # rpm -qa | grep yum yum-3.0.1-5.el5 # rpm -e yum-rhn-plugin # rpm -e yum-updatesd # rpm -e yum-metadata-parser # rpm -e pirut /* RedHat开发的图形界面软件安装、移除软件*/ # rpm -e yum /*下载CentOS 5.0的YUM*/ # wget # wget # wget # wget /*一股脑全都装进去,避免RPM包循环依赖的出现;逐个安装可能会出现包之间的循环依赖问题*/ # rpm -ivh yum-3.2.22-20.el5.centos.noarch.rpm yum-fastestmirror-1.1.16-13.el5.centos.noarch.rpm yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm python-iniparse-0.2.3-4.el5.noarch.rpm
|
# cd /etc/yum.repos.d # wget # mv CentOS-Base.repo.5 CentOS-Base.repo # vim CentOS-Base.repo |
第三步,YUM Update/Install