Score:1

Which package installed postfix as a dependency?

cn flag

I have a script that has lots "sudo apt install ..." commands. While running the script I realized that it also installs postfix which I didn't specify. Is there an easy way to identify which package installs postfix?

Edit: OK. In my situation the "mailutils" package installs postfix as a virtual package with the name default-mta. aptitude why postfix gives the clue. Now I'm gonna use sudo apt install mailutils postfix- (note the dash) to install mailutils without installing postfix.

Score:2
cn flag

If you don't have aptitude installed, you can try

apt remove postfix --simulate

  • Note the --simulate flag. Nothing will actually be removed.

and see what apt wants to remove that requires postfix.

Score:1
us flag

If you have aptitude installed, you can just do

aptitude why postfix

I don't have postfix installed, but when I run it on nullmailer I get

i   lsb-core   Depends  lsb-invalid-mta (>= 11.1.0ubuntu2) | mail-transport-agent
p   nullmailer Provides mail-transport-agent                                     
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.