apt-get卸载程序

以卸载nginx为例:

1、卸载程序

apt-get purge nginx

2、删除文件

apt-get autoremove

apt-get clean

3、删除配置文件(包括/etc/...下配置文件等)

dpkg -l |grep ^rc|awk '{print $2}' |xargs dpkg -P
原文地址:https://www.cnblogs.com/thinking4java/p/4283889.html