APT has good reason to not autoremove kernels, why you want to break
that?

You want *some* process to reap old kernels, ok, but that does not
mean that the core package manager should be that process.  The
selection of which kernels to clean up is domain-specific.  Determine
such a list external to apt and use apt-get remove (not autoremove) to
dispose.

At the very least, if you insist on using markauto + autoremove, do
not make this the default.  Your external process should invoke apt
with a custom configuration where APT::NeverAutoRemove does not
contain the entries blocking the desired autoremoval.  Use APT_CONFIG
envvar and/or apt-get -c.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/923876

Title:
  FR: Limit and clean-up kernel images and headers automatically in LTS

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/923876/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to