Linux中安装yum
Linux中安装yum
as4
安装的yum是从centos升级到RHEL4
1.需要的rpm包(附件中给出)
从上到下安装防止依赖问题
centos-yumconf-4-4.5.noarch.rpm
python-elementtree-1.2.6-7.el4.rf.i386.rpm
python-urlgrabber-2.9.7-1.2.el4.rf.noarch.rpm
sqlite-2.8.16-1.2.el4.rf.i386.rpm
python-sqlite-1.0.1-1.2.el4.rf.i386.rpm
yum-2.4.2-0.4.el4.rf.noarch.rpm
rpm -ivh *.rpm
需要修改/etc/yum.repos.d/CentOS-Base.repo文件内容(下载附件有此文件)
直接覆盖文件
安装完以上所有安装包就执行如下命令
导入GPG Key
rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-4
或rpm --import http://www.haoxm.net/tools/RPM-GPG-KEY-CentOS-4
此时yum安装完毕
yum 的参数list/search/install/upgrade/remove
ep:
#yum install firefox