redhat7.6虚拟机,解决更新包依赖问题

redhat iso文件:百度网盘:
链接:https://pan.baidu.com/s/1zq1DaqwEl82qFpUwmqYlJw
提取码:jmzs
虚拟机安装之后,配置联网,。。。略
通过yum命令进行安装包时,提示:
redhat7.6虚拟机,解决更新包依赖问题_第1张图片**问题:**Loaded plugins: product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
There are no enabled repos.
Run “yum repolist all” to see the repos you have.
To enable Red Hat Subscription Management repositories:
subscription-manager repos --enable
To enable custom repositories:
yum-config-manager --enable
[root@172-0-10-252 ~]# yum repolist all
Loaded plugins: product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
repolist: 0
按照百度经验(https://jingyan.baidu.com/article/6dad50751f4912a123e36e38.html)介绍的方法,尝试并已解决,在此记录中间修改的细节。
Linux小白,最开始执行
wget http://mirrors.163.com/centos/7.2.1511/os/x86_64/Packages/yum-3.4.3-132.el7.centos.0.1.noarch.rpm时,提示“-bash: wget: command not found”。
So,直接访问镜像网址:http://mirrors.163.com/centos/7.6.1810/os/x86_64/Packages/
下载提到的四个安装包。(我已上传资源:redhat7.6更新yum)

卸载原来的yum,否则会出错:
[root@172-0-10-252 yum]# sudo yum repolist
Loaded plugins: product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
repolist: 0
[root@172-0-10-252 yum]# rpm -aq|grep yum |xargs rpm -e --nodeps
[root@172-0-10-252 yum]# rpm -aq|grep python-iniparse |xargs rpm -e --nodeps

将4个rpm包,上传到Linux目录:/var/cache/yum中,(默认安装包路径)
切换到该路径下,执行:rpm -ivh *.rpm
redhat7.6虚拟机,解决更新包依赖问题_第2张图片
继续,修改rhel-debuginfo.repo文件,该文件在我上传的更新yum文件包(redhat7.6更新yum)里也有,主要是根据百度经验中的文件,修改了相应的版本号。
redhat7.6虚拟机,解决更新包依赖问题_第3张图片
同目录下存在redhat.repo文件,查看了下没什么干扰信息,可以不删。
redhat7.6虚拟机,解决更新包依赖问题_第4张图片
继续,清除yum缓存,执行yum clean all
redhat7.6虚拟机,解决更新包依赖问题_第5张图片
安装wget测试:
[root@172-0-10-252 yum.repos.d]# yum -y install wget
redhat7.6虚拟机,解决更新包依赖问题_第6张图片
小白成功的被累哭TT

你可能感兴趣的:(Linux)