yum - Linux中如何完全卸载一个软件(如centos)
伊谢尔伦
伊谢尔伦 2017-04-25 09:02:03
0
2
735

如题,如何才能在Linux中完全卸载一个软件?
我在centos中使用yum安装了一个软件,然后使用yum remove卸载了该软件。但是后来发现/var/log,/var/lib等目录中都有残留。
该如何才能把yum安装得依赖包和卸载后得残留文件都删除?

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all (2)
洪涛

yum remove seems to have deleted all dependencies.
So there are only two parts left:
Cache and log.
Of course, use yum clean all
for caching Logs will not be deleted automatically, because the first workload is too large, and the log directories of various software can be customized, so there is no way to delete them completely,
The other is because the log records almost everything, errors, warnings, hardware errors, access records, etc.

General server logs will not be deleted,
(Except X.org.log if desktop is installed)
There is even a special log cutting software logrotate to split logs to facilitate backup and query.

    阿神

    yum remove will not delete dependent packages
    To delete dependent packages, you need to use yum history related commands

      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!