删除 postfix 而不删除 tripwire(Ubuntu 15.10)

删除 postfix 而不删除 tripwire(Ubuntu 15.10)

我安装了 tripwire,但错误地要求它安装 postfix。我怎样才能删除 postfix 而不丢失 tripwire?

root@blah:~# apt-get remove postfix 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  mailutils postfix tripwire
0 upgraded, 0 newly installed, 3 to remove and 10 not upgraded.
After this operation, 16.4 MB disk space will be freed.
Do you want to continue? [Y/n] n
Abort.

-

root@blah:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 15.10
Release:        15.10
Codename:       wily

答案1

Postfix 很可能是您的默认 MTA,而 Tripwire 包已将其定义为依赖项。这就是为什么当您尝试删除 postfix 时,它会带走 Tripwire。

如果您已经安装了邮件代理,则可以删除 postfix 并使用重新安装 tripwire apt-get --nodeps

我个人会避免这种情况,不要管它。您可以一直安装它,但禁用服务,直到需要为止。

相关内容