如何在centos7中完全卸载Python3

如何在centos7中完全卸载Python3?根据查到的资料,主要就是卸载,然后删除一些软连接删除干净,逻辑很简单,贴一些具体的操作代码,记录下来 。

卸载Python3的步骤

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

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

#查看现有安装的python,验证是否删除干净
whereis python 
posted @ 2022-03-01 19:47  张飞的猪  阅读(488)  评论(0编辑  收藏  举报