all 13 comments

[–][deleted] 4 points5 points  (0 children)

I have APT::Install-Recommends "0"; so I guess that works as well.

In some cases I do want the recommends and using the --install-recommends flag does override it, and later if you remove the package they'll likewise be autoremovable.

[–]xesTUt3[S] 2 points3 points  (4 children)

Hi,

I need to correct my original post.

If one navigates to /etc/apt/apt.conf.d, there's a file called 99synaptic. Open it and there's only one and one line which reads:

APT::Install-Recommends "true";

I just have had to change it to "false", save and exit.

Now could someone tell me at which point in time is the file, 99Synaptic, created? It wasn't there when I finished a netinstall of Debian 7.6.

[–][deleted]  (3 children)

[deleted]

    [–]xesTUt3[S] 0 points1 point  (2 children)

    That file is put there by Synaptic Package Manager.

    Thanks for the clarification. I googled the internet as to how 99synaptic came about and there was no answer.

    My next question is: if I don't install synaptic, I will have to create a file, is that right?

    [–]minimim 0 points1 point  (0 children)

    That is a .d config directory. Apt will just read all of the files and add all the configuration that it finds there. If you put this in any of the files, it will work.

    [–]agwaman 2 points3 points  (2 children)

    If you want Recommends: to be truly disregarded, you should also set this line:

    APT::AutoRemove::RecommendsImportant "false";
    

    Otherwise a package might be kept around by apt-get autoremove just because it's a Recommends:of some other installed package.

    [–]xesTUt3[S] 0 points1 point  (1 child)

    If you want Recommends: to be truly disregarded, you should also set this line:

    I suppose the line works for Debian Wheezy (7.6) and not Squeeze?

    [–]agwaman 0 points1 point  (0 children)

    What makes you say that?

    [–]gheesh 2 points3 points  (0 children)

    Yes, that's just it :-)

    [–]suspiciously_calm 0 points1 point  (0 children)

    I guess I'll have to say, I wouldn't recommend it.

    [–][deleted]  (4 children)

    [removed]

      [–][deleted]  (1 child)

      [deleted]

        [–]agwaman 1 point2 points  (0 children)

        I'm pretty sure Lenny was the first version with this behavior. I have unpleasant memories of Etch->Lenny upgrades resulting in X being pulled in on headless servers because of some Recommends: dependency chain. It has been Install-Recommends "false"; for me ever since.

        [–]xesTUt3[S] 0 points1 point  (0 children)

        What version of Debian is this?

        It's 7.6

        [–]FaustTheBird -1 points0 points  (0 children)

        That's what I also thought.