autoremove old kernel related packages - Was: Out of space

Ralf Mardorf silver.bullet at zoho.com
Tue Aug 2 12:23:27 UTC 2016


On Tue, 02 Aug 2016 12:59:46 +0200, Oliver Grawert wrote:
>Am Dienstag, den 02.08.2016, 12:48 +0200 schrieb Ralf Mardorf:
>> autoremove doesn't work for linux-lowlatency, which IMO is good,
>> because I want to autoremove unneeded packages, but not necessarily
>> an old kernel.  
>
>it might or might not work for lowlatency (it is essential that you use
>the toplevel meta package though), for linux-generic it was one of the
>main features developed for the 14.04 releases (a good bunch of people
>worked on it that cycle) and if it does not work there is definitely a
>pretty bad bug ...

Hi,

this is how I upgrade:

# apt-get update && apt-file update && auto-apt updatedb &&\
  auto-apt update-local && apt-get dist-upgrade && apt-get autoremove

Assumed I want to remove the old kernel I run a script, autoremove
doesn't remove the old kernel. However, I usually have at least two
kernels installed, this could be an old lowlatency + a new lowlatency,
but usually is a rt and just the latest lowlatency.

At the moment only one kernel is installed, including the meta-packages:

$ dpkg -l linux*|grep $(uname -r|sed "s/[[:alpha:]]//g;s/-/./g")|\
  grep -v base|grep -v firmware|grep ii
ii linux-headers-4.4.0-31            4.4.0-31.50 all   [snip]
ii linux-headers-4.4.0-31-lowlatency 4.4.0-31.50 amd64 [snip]
ii linux-headers-lowlatency          4.4.0.31.33 amd64 lowlatency Linux kernel headers
ii linux-image-4.4.0-31-lowlatency   4.4.0-31.50 amd64 [snip]
ii linux-image-lowlatency            4.4.0.31.33 amd64 lowlatency Linux kernel image
ii linux-libc-dev:amd64              4.4.0-31.50 amd64 [snip]
ii linux-lowlatency                  4.4.0.31.33 amd64 Complete lowlatency Linux kernel

Regards,
Ralf
-------------- next part --------------
-- 
ubuntu-users mailing list
ubuntu-users at lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


More information about the ubuntu-users mailing list