linux中的yum安装


1、删除redhat原有的yum源# rpm -aq | grep yum|xargs rpm -e --nodeps2、下载新的yum安装包
这里我们使用CentOS的yum源

wget http://mirror.centos.org/centos/6.4/os/i386/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm

wget http://mirror.centos.org/centos/6.4/os/i386/Packages/yum-metadata-parser-1.1.2-16.el6.i686.rpm

wget http://mirror.centos.org/centos/6.4/os/i386/Packages/yum-3.2.29-40.el6.centos.noarch.rpm

wget http://mirror.centos.org/centos/6.4/os/i386/Packages/yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm

有些包的版本号可能已经改变,如果下载不了,直接上网站查找rpm列表。

3、安装yum软件包# rpm -ivh python-iniparse-0.3.1-2.1.el6.noarch.rpm

你可能感兴趣的:(yum)