How do I avoid installing the recommended packages and suggested packages along with upgrading the packages when I apt-get install
a particular package?
How do I avoid installing the recommended packages and suggested packages along with upgrading the packages when I apt-get install
a particular package?
Suggested packages are not installed by default, to install suggested packages you need to explicitly use
--install-suggests
option (or setAPT::Install-Suggests yes
apt configuration parameter).Now, to avoid installing Recommended packages, either use
--no-install-recommends
option withapt-get
or setAPT::Install-Recommends "0"
in anyplace referred byDir::Etc::Main
(typically/etc/apt/apt.conf
) orDir::Etc::Parts
(typically/etc/apt/apt.conf.d/
.Similarly, to avoid upgrading packages, either use
--no-upgrade
option withapt-get
or setAPT::Get::Upgrade "0"
in anyplace referred byDir::Etc::Main
orDir::Etc::Parts
.In a nutshell, with
apt-get
:In other to install a package without the recommended packages is to run the install command with the
--no-install-recommends
option like this:Don't upgrade packages:
Don't install new packages:
So to achieve what your asking:
Source:
man apt-get