Enable/disable recommends and suggestions.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Tue, 01 Jan 2019 22:32:53 +0200
changeset 2323 7af84df988e9
parent 2322 237657ef1fd9
child 2324 a691d00452b3
Enable/disable recommends and suggestions.
debian-apt.rst
--- a/debian-apt.rst	Mon Dec 31 18:57:23 2018 +0200
+++ b/debian-apt.rst	Tue Jan 01 22:32:53 2019 +0200
@@ -65,13 +65,33 @@
 https://www.google.com/linuxrepositories/
   Links to Google repositories and verification key.
 
-Disable recommends and suggestions
-==================================
+Enable/disable recommends and suggestions
+=========================================
+
+To disable installation of recommended packages (which is by default) create file
+``/etc/apt/apt.conf.d/01no-recommends``::
+
+  APT::Install-Recommends "0";
+  APT::AutoRemove::RecommendsImportant "1";
+
+  APT::Install-Suggests "0";
+
+Alternatively pass corresponding option to installation utility to suppress installation of
+recommended packages::
 
-Create file ``/etc/apt/apt.conf.d/01no-recommends``::
+  apt --no-install-recommends
+  aptitude --without-recommends
+  aptitude -R
+
+To install suggested packages::
 
-  APT::Get::Install-Recommends "false";
-  APT::Get::Install-Suggests "false";
+  apt --install-suggests
+  aptitude --install-suggests
+
+Verify  settings::
+
+  apt-config dump | fgrep -i recommend
+  apt-config dump | fgrep -i suggest
 
 Find nearest mirror
 ===================