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 ! |
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 |
Why not use Aptitude? :)
|
Edit: Oops....
|
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 |
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"; |
Quote:
|
Quote:
|
Quote:
|
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"; |
How to configure apt-get to install suggested packages?
|
Quote:
Code:
apt-get --no-install-recommends install package |
Quote:
Quote:
|
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. |
What's the proper way to comment the apt.conf file?
|
All times are GMT -5. The time now is 05:26 PM. |