Parcourir la source

* cmdline/apt-get.cc:
- added "{no-}install-recommends" option to apt-get
* doc/examples/configure-index:
- recommends/suggests option documented

Michael Vogt il y a 20 ans
Parent
commit
e9ae36778e
2 fichiers modifiés avec 5 ajouts et 0 suppressions
  1. 1 0
      cmdline/apt-get.cc
  2. 4 0
      doc/examples/configure-index

+ 1 - 0
cmdline/apt-get.cc

@@ -2524,6 +2524,7 @@ int main(int argc,const char *argv[])
       {0,"only-source","APT::Get::Only-Source",0},
       {0,"arch-only","APT::Get::Arch-Only",0},
       {0,"allow-unauthenticated","APT::Get::AllowUnauthenticated",0},
+      {0,"install-recommends","APT::Install-Recommends",CommandLine::Boolean},
       {'c',"config-file",0,CommandLine::ConfigFile},
       {'o',"option",0,CommandLine::ArbItem},
       {0,0,0,0}};

+ 4 - 0
doc/examples/configure-index

@@ -90,6 +90,10 @@ APT
   Cache-Limit "4194304";
   Default-Release "";
 
+  // consider Recommends, Suggests as important dependencies that should
+  // be installed by default
+  APT::Install-Recommends "false";
+  APT::Install-Suggests "false";
 
   // Write progress messages on this fd (for stuff like base-config)
   Status-Fd "-1";