安装CentOS版本的yum
下载源:http://mirrors.163.com/centos/6/os/i386/Packages/
材料准备:
python-iniparse-0.3.1-2.1.el6.noarch.rpm
python-urlgrabber-3.9.1-11.el6.noarch.rpm
yum-3.2.29-73.el6.centos.noarch.rpm
yum-metadata-parser-1.1.2-16.el6.i686.rpm
yum-plugin-fastestmirror-1.1.30-37.el6.noarch.rpm
**************************************************************
在很多的教程中,都没有python-urlgrabber-3.9.1-11.el6.noarch.rpm
主要是该版本的yum需要依赖高版本的python-urlgrabber,所以需要在
安装yum之前进行升级。下载源中的各个软件包的版本未必是一致的,需要
进行微调,在最开始的时候还是强制安装python-urlgrabber-3.9.1-11.el6.noarch.rpm
后来才想到rpm命令也有升级功能!!
***************************************************************
卸载yum
rpm -qa |grep yum |xargs rpm -e --nodeps
[root@jack workspace]# rpm -ivh python-iniparse-0.3.1-2.1.el6.noarch.rpm
warning: python-iniparse-0.3.1-2.1.el6.noarch.rpm: Header V3 RSA/SHA256
Signature, key ID c105b9de: NOKEY
Preparing... ########################################### [100%]
package python-iniparse-0.3.1-2.1.el6.noarch is already installed
[root@jack workspace]# rpm -ivh yum-metadata-parser-1.1.2-16.el6.i686.rpm
warning: yum-metadata-parser-1.1.2-16.el6.i686.rpm: Header V3 RSA/SHA1
Signature, key ID c105b9de: NOKEY
Preparing... ########################################### [100%]
1:yum-metadata-parser ########################################### [100%]
[root@jack workspace]# rpm -ivh yum-3.2.29-73.el6.centos.noarch.rpm yum-plugin-
fastestmirror-1.1.30-37.el6.noarch.rpm
warning: yum-3.2.29-73.el6.centos.noarch.rpm: Header V3 RSA/SHA1 Signature, key
ID c105b9de: NOKEY
error: Failed dependencies:
python-urlgrabber >= 3.9.1-10 is needed by yum-3.2.29-
73.el6.centos.noarch
安装过程中出现依赖特定版本的python-urlgrabber
于是特意升级
[root@jack workspace]# rpm -Uvh python-urlgrabber-3.9.1-11.el6.noarch.rpm
warning: python-urlgrabber-3.9.1-11.el6.noarch.rpm: Header V3 RSA/SHA1
Signature, key ID c105b9de: NOKEY
Preparing... ########################################### [100%]
1:python-urlgrabber ########################################### [100%]
[root@jack workspace]# rpm -ivh yum-3.2.29-73.el6.centos.noarch.rpm yum-plugin-
fastestmirror-1.1.30-37.el6.noarch.rpm
warning: yum-3.2.29-73.el6.centos.noarch.rpm: Header V3 RSA/SHA1 Signature, key
ID c105b9de: NOKEY
Preparing... ########################################### [100%]
1:yum-plugin-fastestmirro########################################### [ 50%]
2:yum ########################################### [100%]