Ryen's Blog

知识就是力量

Centos7.9.2009 重新安装python和yum

Centos 重新安装python和yum 卸载python rpm -qa|grep python|xargs rpm -e --allmatches --nodeps ​ whereis python|xargs rm -fr 卸载yum rpm -qa|grep yum|xargs rpm -e --allmatches --nodeps ​ rm -rf /etc/yum.repos.d/* ​ whereis yum|xargs rm -fr 安装python mkdir /usr/local/src/python wget http://mirrors.163.com/centos/7.9.2009/os/x86_64/Packages/python-2.7.5-89.el7.x86_64.rpm wget http://mirrors.163.com/centos/7.9.2009/os/x86_64/Packages/python-iniparse-0.4-9.el7.noarch.rpm