https://help.ubuntu.com/community/Lubuntu/Documentation/RemoveOldKernels
Jarno Suni
j_suni at yahoo.co.uk
Thu Jul 21 18:24:01 UTC 2016
To get information about which package to install to get command purge-old-kernels (used in Manual Maintenance section of the document), if such a package is not already installed (which is the case by default), one may run the command as regular user in terminal i.e. without sudo. From Xenial on, the package is byobu; on older ones down to Trusty it is bikeshed: https://bugs.launchpad.net/ubuntu/+source/bikeshed/+bug/1473161
BTW I have created IMO a better script for removing old kernels. I think such a script should be included in linux-base package so that it would be included in new Ubuntu releases by default. It has currently this kind of usage:
Usage: linux-purge [OPTION]...
Purge versioned kernel packages according to user's preference.
Note that the script also purges such versioned kernel packages that
have the installed respective linux-image package marked "deinstall"
or "purge" by dpkg --set-selections, or if there are just uneeded
configuration files remaining.
Options:
Note: joining short options is not supported.
-a, --auto Restrict purging to packages that have been marked
as being automatically installed.
-c, --choose Choose interactively which kernels to purge.
Overrides possible keep option and auto option.
-h, -?, --help Display this help and exit.
-k NUM, -kNUM, --keep NUM, --keep=NUM
Keep NUM kernels that are older than any kernel a
meta-kernel (such as linux-image-generic) depends on.
Default is 1. Also keep releases that have the
linux-image marked "hold" (by e.g. apt-mark).
-s, --simulate Dry-run; do not actually remove packages. You do not
have to be superuser with this option.
-y, --yes Purge without user confirmation.
Exit Status:
1: Some command line argument is invalid.
2: Some package is in invalid state.
Otherwise inherit the exit status of the apt-get purge command
issued.
--
Jarno Suni - http://iki.fi/8/
On Monday, February 29, 2016 11:45 AM, Jarno Suni <j_suni at yahoo.co.uk> wrote:
>
>
>purge-old-kernels is no longer available on Bikeshed PPA, but on byobu PPA (https://launchpad.net/~byobu/+archive/ubuntu/ppa). Please update the page accordingly.
>
>
>(See https://bugs.launchpad.net/ubuntu/+source/bikeshed/+bug/1473161/comments/4 for reference.)
>
>--
>Jarno Suni - http://iki.fi/8/
>
>
>
>On Tuesday, February 16, 2016 2:49 AM, David Symons <david.symons at liberatedcomputing.net> wrote:
>
>
>>
>>
>>Hi Jarno, Pasi, All,
>>
>>
>>On Tue, 16 Feb 2016 at 07:07 Pasi Lallinaho <pasi at shimmerproject.org> wrote:
>>
>>On 2016-02-15 18:11, Jarno Suni wrote:
>>>> Pasi Lallinaho, what is keeping you from updating the page?
>>>> --
>>>> Jarno Suni - http://iki.fi/8/
>>>>
>>>
>>>Hello Jarno,
>>>
>>>I will look at merging/landing your fixes when I have time.
>>>
>>>Alternatively, if anybody else on the EditorGroup or AdminGroup has the
>>>time, feel free to pick up the task.
>>>
>>
>>
>>I've made the change. Thankyou Jarno for your efforts.
>>
>>
>>Regards, Dave.
>>--
>>David Symons
>>Armidale NSW Australia
>>
>>
>>
>>
>
>
More information about the ubuntu-doc
mailing list