From 8808d81b4f3abfe9e5748ed56664019ef6b2a04d Mon Sep 17 00:00:00 2001 From: Wesley Schwengle Date: Wed, 24 Jan 2024 13:16:52 -0400 Subject: Add documentation of autoremove to apt.conf (5) This commit adds documentation for: APT::Protect-Kernels, APT::NeverAutoRemove::*, APT::VersionedKernelPackages. This is to inform users about the newly introduced NeverAutoRemove::KernelCount feature. Signed-off-by: Wesley Schwengle --- doc/apt.conf.5.xml | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) (limited to 'doc') diff --git a/doc/apt.conf.5.xml b/doc/apt.conf.5.xml index e815a58a1..df692bc40 100644 --- a/doc/apt.conf.5.xml +++ b/doc/apt.conf.5.xml @@ -311,6 +311,61 @@ APT::Compressor::rev { The CDROM subsection controls the &apt-cdrom; tool; please see its documentation for more information about the options here. + + + + + + + + Never autoremove packages that match the regular expression(s). + + + + + + + + + + + This option tells apt autoremove that kernels are protected and + defaults to true. In case kernels are not protected they are + treated as any other package. + + + + + + + + + + + Define the regular expression(s) for versioned kernel packages. + Based on these expressions a rule set is injected into apt + similar to APT::NeverAutoRemove regular expressions. + + + + + + + + + + + Keep a custom amount of kernels when autoremoving and defaults + to 2, meaning two kernels are kept. Apt will always keep the + running kernel and the latest one. If the latest kernel is the + same as the running kernel, the second latest kernel is kept. + Because of this, any value lower than 2 will be ignored. If you + want only the latest kernel, you should set + APT::Protect-Kernels to false. + + + + -- cgit v1.2.3-70-g09d2