diff options
| author | Julian Andres Klode <jak@debian.org> | 2024-02-20 08:30:05 +0000 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2024-02-20 08:30:05 +0000 |
| commit | dfa7965f2f82ba5ada3ed4feea4630a7d4cc5895 (patch) | |
| tree | d03680d77336cb847067fdfcd5020441c07e1b42 /doc/apt.conf.5.xml | |
| parent | 33c2f0fe5b9ec1c368a7f377de5632f183b12e12 (diff) | |
| parent | 8808d81b4f3abfe9e5748ed56664019ef6b2a04d (diff) | |
Merge branch 'keep-kernel-size' into 'main'
Configure the amount of kernels to keep
See merge request apt-team/apt!324
Diffstat (limited to 'doc/apt.conf.5.xml')
| -rw-r--r-- | doc/apt.conf.5.xml | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/doc/apt.conf.5.xml b/doc/apt.conf.5.xml index 7e7d64f8d..46f05d42e 100644 --- a/doc/apt.conf.5.xml +++ b/doc/apt.conf.5.xml @@ -311,6 +311,61 @@ APT::Compressor::rev { <listitem><para>The CDROM subsection controls the &apt-cdrom; tool; please see its documentation for more information about the options here.</para></listitem> </varlistentry> + + <varlistentry> + <term> + <option>NeverAutoRemove</option> + </term> + <listitem> + <para> + Never autoremove packages that match the regular expression(s). + </para> + </listitem> + </varlistentry> + + <varlistentry> + <term> + <option>Protect-Kernels</option> + </term> + <listitem> + <para> + 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. + </para> + </listitem> + </varlistentry> + + <varlistentry> + <term> + <option>VersionedKernelPackages</option> + </term> + <listitem> + <para> + 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. + </para> + </listitem> + </varlistentry> + + <varlistentry> + <term> + <option>NeverAutoRemove::KernelCount</option> + </term> + <listitem> + <para> + 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. + </para> + </listitem> + </varlistentry> + </variablelist> </refsect1> |
