Ubuntu linux卸载软件 apt-get remove,apt-get purge的区别
2016-10-11 00:00
411 查看
apt-get purge packagename 等同于 apt-get remove packagename --purge
apt-get remove 只删除软件包,不删除配置文件
apt-get purge 删除软件包并删除配置文件
配置文件只包括/etc目录中的软件服务使用的配置信息,不包括home目录中的
As the
remove - Packages installed are removed (Does NOT include configuration files)
purge - Purge is identical to remove except that packages are removed and purged. Purge meaning that any configuration files are deleted too.
This of course, does not apply to packages that hold configuration files inside the user's home folder (eg:
So for example, if you were to remove Chrome, Firefox, XBMC or any other that holds some configuration files inside your
On the other hand if you were to install apache, squid, mysql or any other services similar that save their files in
参考资料:http://askubuntu.com/questions/231562/what-is-the-difference-between-apt-get-purge-and-apt-get-remove
apt-get remove 只删除软件包,不删除配置文件
apt-get purge 删除软件包并删除配置文件
配置文件只包括/etc目录中的软件服务使用的配置信息,不包括home目录中的
As the
man apt-getpage says:
remove - Packages installed are removed (Does NOT include configuration files)
purge - Purge is identical to remove except that packages are removed and purged. Purge meaning that any configuration files are deleted too.
This of course, does not apply to packages that hold configuration files inside the user's home folder (eg:
/home/SexyNoJutsuUser), this files will not be touched ( Why does "Purge" not remove everything related to an app? )
So for example, if you were to remove Chrome, Firefox, XBMC or any other that holds some configuration files inside your
/homefolder, this files will stay there.
On the other hand if you were to install apache, squid, mysql or any other services similar that save their files in
/etc, this configuration files will be deleted if you use
purge.
参考资料:http://askubuntu.com/questions/231562/what-is-the-difference-between-apt-get-purge-and-apt-get-remove
相关文章推荐
- ubuntu apt-get install remove clean 彻底 卸载 软件
- Ubuntu 软件安装、查找、卸载--apt-get、apt-cache命令安全
- Ubuntu 软件安装、查找、卸载--apt-get、apt-cache命令安全
- Ubuntu apt-get彻底卸载软件包
- Ubuntu apt-get彻底卸载软件包
- apt-get remove, apt-get autoremove和aptitude remove的区别
- ubuntu apt-get卸载软件无法卸载干净的解决方法(ubuntu卸载apache)
- [Ubuntu 14.10 Kylin]Ubuntu 软件安装、查找、卸载--apt-get、apt-cache命令安全
- ubuntu下安装软件命令apt-get与dpkg命令的区别
- ubuntu如何卸载apt-get install安装的软件
- Ubuntu apt-get彻底卸载软件包(转载)
- ubuntu 软件包管理工具 dpkg,apt-get,aptitude 区别
- Ubuntu 软件安装、查找、卸载--apt-get、apt-cache命令安全
- apt-get remove, apt-get autoremove和aptitude remove的区别
- apt-get remove, apt-get autoremove和aptitude remove的区别
- 卸载ubuntu下apt-get和setup.py安装的软件
- Ubuntu 软件安装、查找、卸载--apt-get、apt-cache命令安全
- Ubuntu 软件安装、查找、卸载--apt-get、apt-cache命令安全
- Ubuntu 软件安装、查找、卸载--apt-get、apt-cache命令安全
- ubuntu如何卸载apt-get install安装的软件