Ubuntu remove old kernel

Support Wissensdatenbank

Du bist hier:

Ubuntu remove old kernel

Do you want to remove old kernels? Or is your /boot drive full?

Ubuntu removed for security reasons, no old kernels. To counteract this, you can remove the old kernels via SSH as follows (we advise against an automatic CronJob script)


dpkg -l 'linux-[ihs]*' | sed '/^ii/!d;/'"$(uname -r | sed "s/([-0-9]*)-([^0-9]+)/1/")"'/d;s/^[^ ]* [^ ]* ([^ ]*).*/1/;/[0-9]/!d' | tea_removable_kernel
cat kernel_to_be_removed | xargs sudo apt-get -y purge
rm_kernel_to_be_removed
[//code]

War dieser Artikel hilfreich?
0 out of 5 stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
Wie können wir diesen Artikel verbessern?
Brauchst du Hilfe?
Related Post