rpm安装yum_2018_lcf

1.删除redhat自带的yum包
[root@localhost ~]# rpm -qa|grep yum|xargs rpm -e --nodeps

 下载安装包

yum-3.4.3-154.el7.centos.noarch.rpm

yum-plugin-fastestmirror-1.1.31-42.el7.noarch.rpm

yum-metadata-parser-1.1.4-10.el7.x86_64.rpm


[root@localhost ~]# wget http://http://mirrors.163.com/centos/7.4.1708/os/x86_64/Packages/RPM-GPG-KEY-CentOS-7
[root@localhost~]#wgethttp://http://mirrors.163.com/centos/7.4.1708/os/x86_64/Packages/yum-3.4.3-154.el7.centos.noarch.rpm
[root@localhost ~]#wget http://http://mirrors.163.com/centos/7.4.1708/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.31-42.el7.noarch.rpm
[root@localhost ~]#wget http://http://mirrors.163.com/centos/7.4.1708/os/x86_64/Packages/yum-metadata-parser-1.1.4-10.el7.x86_64.rpm
[root@localhost ~]#wget http://http://mirrors.163.com/centos/7.4.1708/os/x86_64/Packages/python-iniparse-0.4-9.el7.noarch.rpm

用rpm安装时,要把依赖包也一同写在安装包后面(试过用 rmp -ivh yum-*无效)

[root@localhost rpm]# rpm -ivh yum-3.2.27-14.el6.centos.noarch.rpm yum-fastestmirror-1.1.26-11.el6.centos.noarch.rpm
随后看到的结果:

Preparing...                ########################################### [100%]
   1:yum-fastestmirror      ########################################### [ 50%]
   2:yum                    ########################################### [100%]
至此Yum安装过程中被需要问题解决了!

这样就把yum安装好了。  

你可能感兴趣的:(rpm安装yum_2018_lcf)