LinuxQuestions.org
Help answer threads with 0 replies.
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 04-13-2004, 05:40 PM   #1
davidas
Member
 
Registered: Mar 2004
Distribution: Debian 'Sarge'
Posts: 168

Rep: Reputation: 30
How to configure apt-get to install suggested packages?


Eg.

david:/etc/apt# apt-get install bind9
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
libdns11 libisc7 libisccc0 libisccfg0 liblwres1
Suggested packages:
dnsutils bind9-doc
The following NEW packages will be installed:
bind9 libdns11 libisc7 libisccc0 libisccfg0 liblwres1
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 1105kB of archives.
After unpacking 2646kB of additional disk space will be used.

How to configure apt-get such that it will also install dnsutils and bind9-doc (suggested packages) in addition to bind9 package?

Also, are /etc/apt/preferences and /etc/apt/apt,conf files created by default upon apt installation? Cos I only have the following files in my /etc/apt :

david:/etc/apt# ls
apt-file.conf apt.conf.d sources.001 sources.list

Thanks !
 
Old 04-13-2004, 06:18 PM   #2
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 57
Didn't it ask if you wanted to proceed and did you answer y?

If not, try editing sources.list for the ones you wish to use.

# Debian links
Installing Debian GNU/Linux 3.0 For Intel x86
The Very Verbose Debian 3.0 Installation Walkthrough
APT HOWTO
Debian Package Management HOWTO Version 1.1

Last edited by fancypiper; 04-13-2004 at 06:21 PM.
 
Old 04-13-2004, 06:23 PM   #3
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
Why not use Aptitude?
 
Old 07-19-2007, 09:57 PM   #4
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,176

Rep: Reputation: 54
Edit: Oops....

Last edited by m_yates; 07-19-2007 at 10:07 PM.
 
Old 07-20-2007, 12:41 AM   #5
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 59
Normally, what I do is type (y) and let it install what I originally asked for, then I issue a second apt-get install command and copy and paste the earlier suggested packages after the apt-get install command. Or you could type (n) to say no and redo your install command to have all of them like so:
Code:
apt-get install bind9 dnsutils bind9-doc
 
Old 07-20-2007, 06:16 AM   #6
Telemachos
Member
 
Registered: May 2007
Distribution: Debian
Posts: 754

Rep: Reputation: 59
I think that automatically adding all suggested packages would put a lot of cruft on your system. However, if you want it, you can get that behavior by adding a line to /etc/apt/apt.conf:
Code:
APT::Install-Recommends "true";
APT::Install-Suggests "true";
The second line will automate suggests and the first would automate installation of recommends. You can use either or both, though again, lots of cruft. If you don't yet have an /etc/apt/apt.conf file, you can create it and add just the one line.

Last edited by Telemachos; 07-20-2007 at 06:19 AM.
 
Old 07-20-2007, 12:56 PM   #7
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Rep: Reputation: 48
Quote:
Originally Posted by Telemachos
I think that automatically adding all suggested packages would put a lot of cruft on your system. However, if you want it, you can get that behavior by adding a line to /etc/apt/apt.conf:
Code:
APT::Install-Recommends "true";
APT::Install-Suggests "true";
The second line will automate suggests and the first would automate installation of recommends. You can use either or both, though again, lots of cruft. If you don't yet have an /etc/apt/apt.conf file, you can create it and add just the one line.
That's good to know. Interesting to see this thread bumped up after 3 years....
 
Old 07-20-2007, 07:23 PM   #8
Telemachos
Member
 
Registered: May 2007
Distribution: Debian
Posts: 754

Rep: Reputation: 59
Quote:
Originally Posted by kushalkoolwal
That's good to know. Interesting to see this thread bumped up after 3 years....
Wow, yeah. The funny thing is that I saw the thread at the top of the list this morning in the Debian forum, so I stuck my two cents in. I didn't even look at the original posting dates. And here I am bumping it up again. Ah well...
 
Old 05-30-2008, 10:03 PM   #9
motohoss
LQ Newbie
 
Registered: May 2008
Distribution: Debian
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by Telemachos View Post
Wow, yeah. The funny thing is that I saw the thread at the top of the list this morning in the Debian forum, so I stuck my two cents in. I didn't even look at the original posting dates. And here I am bumping it up again. Ah well...
Thanks for having this tidbit here. It helped me today.
 
Old 06-07-2008, 06:37 PM   #10
pliqui
Member
 
Registered: Feb 2007
Location: Caracas, Venezuela
Distribution: Debian x64
Posts: 156

Rep: Reputation: 17
and if you have a multi distro like me (testing, unstable and experimental) you can also add to your apt.conf

Code:
APT::Default-Release "testing";
so you can choose your default realease... my 2cents
 
Old 07-15-2009, 06:54 PM   #11
cortocircuito
LQ Newbie
 
Registered: Jul 2008
Location: NZ for now
Distribution: debian
Posts: 6

Rep: Reputation: 0
How to configure apt-get to install suggested packages?

check out this:

http://ubuntuforums.org/showthread.php?t=43382
 
Old 07-15-2009, 08:26 PM   #12
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux
Posts: 1,033

Rep: Reputation: 95
Quote:
Originally Posted by Telemachos View Post
I think that automatically adding all suggested packages would put a lot of cruft on your system. However, if you want it, you can get that behavior by adding a line to /etc/apt/apt.conf:
Code:
APT::Install-Recommends "true";
APT::Install-Suggests "true";
The second line will automate suggests and the first would automate installation of recommends. You can use either or both, though again, lots of cruft. If you don't yet have an /etc/apt/apt.conf file, you can create it and add just the one line.
If you have apt.conf set up like this, you can avoid installing recommends via:
Code:
apt-get --no-install-recommends install package
This will prevent apt from considering recommended packages as a dependency for installing, even if apt.conf is configured to do so via "APT::Install-Recommends".
 
Old 08-23-2009, 09:05 AM   #13
vikjon0
LQ Newbie
 
Registered: Aug 2009
Posts: 3

Rep: Reputation: 1
Quote:
apt-get --no-install-recommends install package
I use this all the time, the problem now is that I cant get the recommends to install! I assumed I could just follow up with

Quote:
apt-get install package
but it does not bite. No packages are installed. My problem is gnome-core so there is a lot of rec.
 
Old 02-05-2011, 04:18 AM   #14
mfrasca
LQ Newbie
 
Registered: Apr 2005
Distribution: Debian
Posts: 5

Rep: Reputation: 0
following "suggested"

you can also specify the option on the command line, like this:
sudo apt-get install <package> -o APT::Install-Suggests=true
but apt-get install will follow the "suggests" for all installed packages, not just the one you are adding now.
 
Old 03-21-2012, 01:22 PM   #15
badbit
LQ Newbie
 
Registered: Jul 2005
Location: Mexicali, B.C.
Distribution: Fedora, Ubuntu, Knoppix
Posts: 12

Rep: Reputation: 0
What's the proper way to comment the apt.conf file?
 
  


Reply

Tags
apt-get


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
apt is confused, trying to install packages that are already installed tomj88 Debian 10 09-11-2005 06:33 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
Apt-get with suggested packages shaggy007 Debian 6 09-21-2004 08:33 AM
Do you install packages manually in addition/instead of apt-get? R00ts Debian 5 07-11-2004 02:31 AM


All times are GMT -5. The time now is 09:41 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration