卸载python
rpm -qa|grep python|xargs rpm -ev --allmatches --nodeps
whereis python |xargs rm -frv
卸载yum
rpm -qa|grep yum|xargs rpm -ev --allmatches --nodeps文章来源:https://www.toymoban.com/news/detail-648925.html
whereis yum |xargs rm -frv文章来源地址https://www.toymoban.com/news/detail-648925.html
安装yum
wget https://vault.centos.org/centos/8.5.2111/BaseOS/x86_64/os/Packages/python3-asn1crypto-0.24.0-3.el8.noarch.rpm
wget https://vault.centos.org/centos/8.5.2111/BaseOS/x86_64/os/Packages/python3-dnf-4.7.0-4.el8.noarch.rpm
wget https://vault.centos.org/centos/8.5.2111/BaseOS/x86_64/os/Packages/python3-gpg-1.13.1-9.el8.x86_64.rpm
wget https://vault.centos.org/centos/8.5.2111/BaseOS/x86_64/os/Packages/python3-hawkey-0.63.0-3.el8.x86_64.rpm
wget https://vault.centos.org/centos/8.5.2111/BaseOS/x86_64/os/Packages/python3-libcomps-0.1.16-2.el8.x86_64.rpm
wget https://vault.centos.org/centos/8.5.2111/BaseOS/x86_64/os/Packages/python3-libdnf-0.63.0-3.el8.x86_64.rpm
wget https://vault.centos.org/centos/8.5.2111/BaseOS/x86_64/os/Packages/python3-libs-3.6.8-41.el8.x86_64.rpm
wget https://vault.centos.org/centos/8.5.2111/BaseOS/x86_64/os/Packages/python3-rpm-4.14.3-19.el8.x86_64.rpm
wget https://vault.centos.org/centos/8.5.2111/BaseOS/x86_64/os/Packages/platform-python-3.6.8-41.el8.x86_64.rpm
rpm -Uvh --force --nodeps *.rpm
到了这里,关于Liunx——Centos 8.5.2111 重新安装yum的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!