How to force aptitude to install recommended packages?
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I realise this is not the point, but are you able to install gcc-multilib manually. As it may be an issue with your sources.list. http://packages.debian.org is a good place to check version package availability.
Distribution: Solaris 10, Solaris Express Community Edition
Posts: 547
Original Poster
Rep:
Thanks poonippi. That's what I do: copying the names of the packages which were not installed and install them separately. But, obviously, that's not the desired solution. Then, if I had a problem with my sources.list, I shouldn't be able to install it later, should I?
BTW, this is my sources.list:
Code:
deb http://security.debian.org/ testing/updates main contrib
deb-src http://security.debian.org/ testing/updates main contrib
deb http://www.debian-multimedia.org/ testing main
deb ftp://ftp.es.debian.org/debian/ testing main contrib non-free
deb-src ftp://ftp.es.debian.org/debian/ testing main contrib non-free
I thought you had to specify to treat recommends as dependencies using -r or --with-recommends unless you had altered your ~/.aptitude/config file. or so the man page would have me believe..
Quote:
-r --with-recommends
Treat recommendations as dependencies when installing new packages (this overrides settings in /etc/apt/apt.conf and ~/.aptitude/config).
This corresponds to the configuration option Aptitude::Recommends-Important
Quote:
Option: Aptitude::Recommends-Important
Default: true
Description: If this option is true and Aptitude::Auto-Install is true, installing a new
package will also install any packages that it recommends. Furthermore, if this option is true,
then packages will be kept on the system if an installed package recommends them.
Option: Aptitude::Auto-Install
Default: true
Description: If this option is true, aptitude will automatically attempt to fulfill the
dependencies of a package when you select it for installation.
I would say try editing the ~/.aptitude/config file and adding both those Options set to true and try again.. personally I'm glad it doesn't install recommends automatically.. after all it's a recommended package not a required package.
Distribution: Solaris 10, Solaris Express Community Edition
Posts: 547
Original Poster
Rep:
Yes, probably the default behavior is good. The problem was that I already try the aptitude -r flag and the results were the same. I'll try the configuration option, even if in this case the man page is not as accurate, at least so it seems to me.
I believe Aptitude's default behavior is to install "recommends" when you do an "aptitude install xxxxxxxx", but not when you do "aptitude dist-upgrade".
Distribution: Solaris 10, Solaris Express Community Edition
Posts: 547
Original Poster
Rep:
Thanks for your opinions.
One question: if aptitude doesn't do that during a full-upgrade, it means that one fresh installation for the distribution would not include such package, would it?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.