Yum relies on python, python can be upgraded through yum, the problem arises from this
I first upgraded python and found that yum could not be used, so I uninstalled python violently, then yum could not be installed, and yum still could not be installed after python was installed.
Record the resolution process here
First download the rpm installation package of yum, and found that many dependencies are missing during installation, so I downloaded all the dependencies one by one and put them in the same directory, installed directly, and then reinstalled the yum package source and finally solved the problem
Baidu network disk link: https://pan.baidu.com/s/1PEOpa5-v6U9xenOfVxaJeQ Extraction code: sbf2
This is all the required packages. After downloading, place them in a directory, rpm -ivh *.rpm --nodeps --force force the installation, and then install the yum package source http://mirrors.aliyun.com/repo/Centos -8.repo, yum can be used normally
I hope I can help you who accidentally fall into the trap,
Recommended Posts