步骤如下
http://mirrors.163.com/centos/7/os/x86_64/Packages/
到上面这个网站去下载如下RPM包(为版本号,根据最新的自己替换即可)
python-iniparse-.noarch.rpm
yum-metadata-parser-.x86_64.rpm
yum-.centos.noarch.rpm
yum-plugin-fastestmirror-*.noarch.rpm
下载完成之后,用rpm命令进行安装,如下:
rpm -ivh –force –nodeps python-iniparse-.noarch.rpm
rpm -ivh –force –nodeps yum-metadata-parser-.x86_64.rpm
rpm -ivh –force –nodeps yum-.centos.noarch.rpm
rpm -ivh –force –nodeps yum-plugin-fastestmirror-.noarch.rpm
如:
http://mirrors.163.com/centos/7/os/x86_64/Packages/python-iniparse-0.4-9.el7.noarch.rpm
http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-metadata-parser-1.1.4-10.el7.x86_64.rpm
http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-3.4.3-168.el7.centos.noarch.rpm
http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.31-54.el7_8.noarch.rpm
第二步:
下载yum-3.4.3.tar.gz并进行以下步骤
$ wget http://yum.baseurl.org/download/3.4/yum-3.4.3.tar.gz
$ tar -zxvf yum-3.4.3.tar.gz
解压后进到yum-3.4.3目录
$./yummain.py update
- •VMware Workstation Pro 16安装CentOS7超详细图文步骤
- •CentOS7下配置使用JumpServer 堡垒机 (图文教程)
- •CentOS安装jdk的几种方法及配置环境变量方式
- •CentOS忘记密码修改方案以及centos卡在开机登录界面,命令失效的解决方法
- •解决笔记本安装centos7后无法调节屏幕亮度
- •VMware安装CentOS 8.1(CentOS 8系列可参考)的图文详细教程
- •CentOS7 minimal 最小化安装网络设置过程
- •CentOS7下搭建JumpServer
- •CentOS安装rpm包出现冲突时的解决办法
- •Vmware下CentOS7最小化安装方式