[关闭]
@Tessedar 2016-05-25T13:48:57.000000Z 字数 452 阅读 2003

Ubuntu 删除带 rc 标记的 dpkg 包

Ubuntu使用


浏览所有已安装的软件包:

$ dpkg -l

其中 rc 状态意为:软件包已卸载,但配置文件仍保留。

要一个个删除所有 rc 状态的软件包很麻烦,可以这样清理:

$ dpkg -l | grep ^rc | cut -d ' ' -f3 | sudo xargs dpkg --purge  

使用实例:

$ dpkg -l | grep ^rc | cut -d ' ' -f3 | sudo xargs dpkg --purge
(Reading database ... 176063 files and directories currently installed.)
Removing freeglut3 ...
Purging configuration files for freeglut3 ...
Removing libphysfs1 ...
Purging configuration files for libphysfs1 ...
Removing libsdl-pango1 ...
Purging configuration files for libsdl-pango1 ...
$
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注