【centos7】中完全卸载Python3

如何在centos7中完全卸载Python3?逻辑很简单,具体的操作代码,记录下来 。

卸载Python3的三步骤

1、卸载python3
rpm -qa|grep python3|xargs rpm -ev --allmatches --nodeps 

2、删除所有残余文件
whereis python3 |xargs rm -frv

3、查看现有安装的python,验证是否删除干净
whereis python 

猜你喜欢

转载自blog.csdn.net/weixin_71435518/article/details/131267299