Aptitude 0.4.10 may not listen to --without-recommends

News and discussion about development of the Debian OS itself

Aptitude 0.4.10 may not listen to --without-recommends

Postby Telemachus » 2008-03-18 02:05

Just something for people to keep an eye on. Aptitude 0.4.10 (ie, in Lenny and Sid) + newer versions of libapt can produce a situation where Aptitude doesn't listen to -R (--without-recommends). That is: you tell Aptitude to install without including recommends, but it wants to install recommended packages anyhow. The newest version of Aptitude (which just moved into experimental on Sunday) fixes the issue, but there's another work around. Include both these lines in your /etc/apt/apt.conf:
APT::Install-Recommends "false";
Aptitude::Recommends-Important "false";

Here's a bug report and Daniel Burrows's release notes on 0.4.11 (coming soon to a branch of Debian near you): http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=458189
http://algebraicthunk.net/~dburrows/projects/aptitude/news/aptitude-0.4.11-release-notes/
User avatar
Telemachus
 
Posts: 4677
Joined: 2006-12-25 15:53

Postby Eck » 2008-03-18 03:16

Another way for when you want recommends most of the time but there are some that are unwanted is to use aptitude from its gui.

You can + the install then hit g for the summery page to come up. In the details scroll to the dependencies to be installed with it and when you spot the recommended package you don't want, highlight it and hit - and then go ahead and hit g again for the installation.

I've done that for a few items that I felt didn't add and could interfere such as the recommend of the Fluendo gstreamer mp3 playback codec being a recommendation of the Brasero cd/dvd burning package. No need for that if you've got the gstreamer0.10-plugins-ugly and the gstreamer-ffmpeg-full and libmad combination installed. It might even interfere with the desired plugins working properly in the players.
Lenovo z560 Laptop Nvidia GeForce 310m Hitachi 500GB HD Intel HD Audio 4GB RAM
Eck
 
Posts: 740
Joined: 2007-06-27 16:13


Return to Debian Development

Who is online

Users browsing this forum: No registered users and 3 guests

fashionable