解决red hat 不能使用yum下载软件命令问题

解决red hat 不能使用yum下载软件命令问题
------------------------------
1.删除 red hat 自带的yum
rpm -aq|grep yum|xargs rpm -e --nodeps
--------------------------------
2.下载centos 64位 6版本号文件
------------------------------------

wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-3.2.29-81.el6.centos.noarch.rpm
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-40.el6.noarch.rpm
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm

--------------------------------------------------
3.安装下载的文件
--------------------------------------
rpm -ivh python*

rpm -ivh yum*
----------------------------
4.更改源
-----------------

wget http://mirrors.163.com/.help/CentOS6-Base-163.repo

5.yum仓库确认
---------------
yum repolist
----------------

posted @ 2021-11-29 15:42  岁月如歌_九  阅读(182)  评论(0编辑  收藏  举报