Debian This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
|
04-13-2004, 05:40 PM
|
#1
|
Member
Registered: Mar 2004
Distribution: Debian 'Sarge'
Posts: 168
Rep:
|
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 !
|
|
|
04-13-2004, 06:18 PM
|
#2
|
LQ Guru
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141
Rep:
|
Last edited by fancypiper; 04-13-2004 at 06:21 PM.
|
|
|
04-13-2004, 06:23 PM
|
#3
|
Senior Member
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597
Rep:
|
Why not use Aptitude? 
|
|
|
07-19-2007, 09:57 PM
|
#4
|
Senior Member
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,249
Rep: 
|
Edit: Oops....
Last edited by m_yates; 07-19-2007 at 10:07 PM.
|
|
|
07-20-2007, 12:41 AM
|
#5
|
Senior Member
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687
Rep:
|
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
|
|
|
07-20-2007, 06:16 AM
|
#6
|
Member
Registered: May 2007
Distribution: Debian
Posts: 754
Rep:
|
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.
|
|
|
07-20-2007, 12:56 PM
|
#7
|
Senior Member
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249
Rep:
|
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.... 
|
|
|
07-20-2007, 07:23 PM
|
#8
|
Member
Registered: May 2007
Distribution: Debian
Posts: 754
Rep:
|
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...
|
|
|
05-30-2008, 10:03 PM
|
#9
|
LQ Newbie
Registered: May 2008
Distribution: Debian
Posts: 1
Rep:
|
Quote:
Originally Posted by Telemachos
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.
|
|
|
06-07-2008, 06:37 PM
|
#10
|
Member
Registered: Feb 2007
Location: Caracas, Venezuela
Distribution: Debian x64
Posts: 156
Rep:
|
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
|
|
|
07-15-2009, 06:54 PM
|
#11
|
LQ Newbie
Registered: Jul 2008
Location: NZ for now
Distribution: debian
Posts: 6
Rep:
|
How to configure apt-get to install suggested packages?
|
|
|
07-15-2009, 08:26 PM
|
#12
|
Senior Member
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,573
|
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.
|
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".
|
|
|
08-23-2009, 09:05 AM
|
#13
|
LQ Newbie
Registered: Aug 2009
Posts: 3
Rep:
|
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
but it does not bite. No packages are installed. My problem is gnome-core so there is a lot of rec.
|
|
|
02-05-2011, 04:18 AM
|
#14
|
LQ Newbie
Registered: Apr 2005
Distribution: Debian
Posts: 5
Rep:
|
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.
|
|
|
03-21-2012, 01:22 PM
|
#15
|
LQ Newbie
Registered: Jul 2005
Location: Mexicali, B.C.
Distribution: Fedora, Ubuntu, Knoppix
Posts: 12
Rep:
|
What's the proper way to comment the apt.conf file?
|
|
|
All times are GMT -5. The time now is 01:34 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|