Bug#807413: apt: autoremoval of build-deps is broken
On 2015-12-08 Julian Andres Klode <jak@debian.org> wrote:
> On Tue, Dec 08, 2015 at 04:57:56PM +0100, Andreas Metzler wrote:
[...]
>> I see. Shouldn't Recommends/Suggests be ignored by autoremove when
>> APT::Install-Recommends "false";
>> APT::Install-Suggests "false";
>> are set?
> No, that's set by
> APT::AutoRemove::RecommendsImportant
> APT::AutoRemove::SuggestsImportant
Thanks, that helped.
Afaict these settings are not documented yet. Would you consider the
attached trivial patch?
cu Andreas
--
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'
diff -NurbBp apt-1.1.4/doc/examples/configure-index apt-1.1.4-doc/doc/examples/configure-index
--- apt-1.1.4/doc/examples/configure-index 2015-12-07 15:31:55.000000000 +0100
+++ apt-1.1.4-doc/doc/examples/configure-index 2015-12-08 19:49:42.552159198 +0100
@@ -107,6 +107,9 @@ APT
// be installed by default
Install-Recommends "true";
Install-Suggests "false";
+ // reverse Recommends or Suggests prevent autoremoval
+ AutoRemove::RecommendsImportant "true";
+ AutoRemove::SuggestsImportant "true";
// consider dependencies of packages in this section manual
Never-MarkAuto-Sections {"metapackages"; "universe/metapackages"; };
Reply to: