LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-18-2007, 01:46 PM   #1
crisostomo_enrico
Member
 
Registered: Dec 2005
Location: Madrid
Distribution: Solaris 10, Solaris Express Community Edition
Posts: 547

Rep: Reputation: 36
How to force aptitude to install recommended packages?


Hi.

I'm fighting with this: I just ran
Quote:
# aptitude upgrade
# aptitude full-upgrade
and it informed me that some required package, such as gcc-multilib, is recommended but will not be installed.

How can I force it to install recommended packages? I read the documentation and by default it should, but does not.

Any hint?
Thanks,
Enrico.
 
Old 12-18-2007, 02:13 PM   #2
poonippi
Member
 
Registered: Dec 2007
Distribution: Debain Fluxbox
Posts: 76

Rep: Reputation: 15
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.
 
Old 12-18-2007, 02:34 PM   #3
crisostomo_enrico
Member
 
Registered: Dec 2005
Location: Madrid
Distribution: Solaris 10, Solaris Express Community Edition
Posts: 547

Original Poster
Rep: Reputation: 36
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
Bye,
Enrico.
 
Old 12-18-2007, 03:36 PM   #4
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
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.
 
Old 12-18-2007, 04:21 PM   #5
crisostomo_enrico
Member
 
Registered: Dec 2005
Location: Madrid
Distribution: Solaris 10, Solaris Express Community Edition
Posts: 547

Original Poster
Rep: Reputation: 36
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.

Thanks,
Enrico.
 
Old 12-18-2007, 05:12 PM   #6
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
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".
 
Old 12-19-2007, 06:52 AM   #7
Telemachos
Member
 
Registered: May 2007
Distribution: Debian
Posts: 754

Rep: Reputation: 60
Ditto to what Rickh says above. In fact, I always add
Code:
Aptitude::Recommends-Important "false";
to my /etc/apt/apt.conf file because I don't want recommended packages installed by default.
 
Old 12-19-2007, 07:13 AM   #8
crisostomo_enrico
Member
 
Registered: Dec 2005
Location: Madrid
Distribution: Solaris 10, Solaris Express Community Edition
Posts: 547

Original Poster
Rep: Reputation: 36
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?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Aptitude want to remove packages pliqui Debian 4 11-26-2007 11:24 AM
Aptitude: How do install suggested packages automatically? Akhran Debian 7 09-06-2006 03:57 PM
How to force install of unsigned packages with Synaptic Elong SUSE / openSUSE 6 03-15-2006 09:35 PM
using apt to install recommended packages? MaTrIx709 Linux - Software 2 08-12-2005 01:04 AM
Is there a parameter for apt-get to install all recommended / suggested packages? Akhran Debian 5 08-08-2005 02:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration