环境: Ubuntu 16.04
作者:旺仔_0350
链接:https://www.jianshu.com/p/439cd2a7c84e
1、删除apt install安装的软件
1.先执行一下命令:
1.1 删除nginx,–purge包括配置文件
sudo apt-get --purge remove nginx
1.2 自动移除全部不使用的软件包
sudo apt-get autoremove
1.3 罗列出与nginx相关的软件
dpkg --get-selections|grep nginx
执行1.3的结果:
dpkg --get-selections|grep nginx
nginx install
nginx