search

Home  >  Q&A  >  body text

yum - Linux中如何完全卸载一个软件(如centos)

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

伊谢尔伦伊谢尔伦2773 days ago809

reply all(2)I'll reply

  • PHP中文网

    PHP中文网2017-04-25 09:04:03

    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.

    reply
    0
  • 阿神

    阿神2017-04-25 09:04:03

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

    reply
    0
  • Cancelreply