ubuntu 彻底删除卸载

 1911  sudo apt-get install zabbix-agent
 1916  sudo apt-get autoremove zabbix_agent
root@(none):~# apt-get purge zabbix-agent
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  zabbix-agent*
0 upgraded, 0 newly installed, 1 to remove and 140 not upgraded.
After this operation, 770 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 127140 files and directories currently installed.)
Removing zabbix-agent (1:2.2.2+dfsg-1ubuntu1) ...
Purging configuration files for zabbix-agent (1:2.2.2+dfsg-1ubuntu1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
root@(none):/etc/zabbix# apt-get autoremove --purge zabbix-agent
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  zabbix-agent*
0 upgraded, 0 newly installed, 1 to remove and 159 not upgraded.
After this operation, 770 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 127140 files and directories currently installed.)
Removing zabbix-agent (1:2.2.2+dfsg-1ubuntu1) ...
Purging configuration files for zabbix-agent (1:2.2.2+dfsg-1ubuntu1) ...
dpkg: warning: while removing zabbix-agent, directory '/etc/zabbix' not empty so not removed
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
原文地址:https://www.cnblogs.com/bass6/p/5531245.html