APT::Install-Recommends

Apparently Ubuntu now has APT::Install-Recommends set to True by default. This happened in version 8.10 (Intrepid) and it results in that packages marked as Recommended are now automatically installed kinda like dependencies.

I guess that change can make sense on a desktop system, where it might be nice to by default provide the user with a few more useful features.  Dealing with servers on the other hand I very much like to be in control of what and what not is installed.

My way of disabling the automatic installation of Recommends is to put this into /etc/apt/apt.conf.d/01ubuntu:

APT
{
Install-Recommends “false”;
};

Disclaimer: I don’t know the APT layout of Ubuntu well enough to know if that is the best place to put those settings. All I can say is that for now it seems to get the job done.

Yes, I have made a mention about it in Launchpad (#316472).

2 Responses to APT::Install-Recommends

  1. Adam Bergmark January 24, 2009 at 10:24 pm

    Oh, so that’s why it kept installing OO.org and what not? :-) Good stuff

  2. Pingback: without recommends « Azitech

Leave a Reply

Fill in your details below or click an icon to log in:

Gravatar
WordPress.com Logo

Please log in to WordPress.com to post a comment to your blog.

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.