如何干净删除安装的程序(debian系统)

来源:互联网 发布:做生日贺卡的软件 编辑:程序博客网 时间:2024/05/21 17:00

要干净的删除安装的一个程序及其依赖,可执行如下的命令(以删除 gnome为例):

aptitude purge `dpkg --get-selections | grep gnome | cut -f 1`aptitude -f installaptitude purge `dpkg --get-selections | grep deinstall | cut -f 1`aptitude -f install