Eu quero remover os kernels antigos do linux

1

Mas eles são persistentes. Eu tentei synaptic, dpkg --purge e apt remove, kernels de remoção de bikeshed, e vários scripts para remoção em outras perguntas - respostas. Todos esses comandos acham que os kernels e cabeçalhos antigos desapareceram.

Ainda temos 4,4-30,43,45 e 4,8-30,43,45.

Eu sou apenas burro? Eu não consigo descobrir como banir esses kernels antigos

ls -l /boot

total 235049

-rw-r--r-- 1 root root  1443149 Apr  6 12:28 abi-4.10.0-19-generic
-rw-r--r-- 1 root root  1242701 Oct 12  2016 abi-4.4.0-43-generic
-rw-r--r-- 1 root root  1242701 Oct 19 12:34 abi-4.4.0-45-generic
-rw-r--r-- 1 root root  1407739 Dec  1 11:02 abi-4.8.0-30-generic
-rw-r--r-- 1 root root   204918 Apr  6 12:28 config-4.10.0-19-generic
-rw-r--r-- 1 root root   189760 Oct 12  2016 config-4.4.0-43-generic
-rw-r--r-- 1 root root   189760 Oct 19 12:34 config-4.4.0-45-generic
-rw-r--r-- 1 root root   199485 Dec  1 11:02 config-4.8.0-30-generic
drwx------ 3 root root     1024 Dec 31  1969 efi
drwxr-xr-x 5 root root     4096 Apr 19 00:43 grub
-rw-r--r-- 1 root root 43128920 Apr 11 00:19 initrd.img-4.10.0-19-generic
-rw-r--r-- 1 root root 37850493 Oct 18  2016 initrd.img-4.4.0-43-generic
-rw-r--r-- 1 root root 37852358 Oct 20 12:50 initrd.img-4.4.0-45-generic
-rw-r--r-- 1 root root 41316093 Dec 24 22:49 initrd.img-4.8.0-30-generic
-rw-r--r-- 1 root root   182704 Jan 28  2016 memtest86+.bin
-rw-r--r-- 1 root root   184380 Jan 28  2016 memtest86+.elf
-rw-r--r-- 1 root root   184840 Jan 28  2016 memtest86+_multiboot.bin
-rw------- 1 root root  3718456 Apr  6 12:28 System.map-4.10.0-19-generic
-rw------- 1 root root  3869895 Oct 12  2016 System.map-4.4.0-43-generic
-rw------- 1 root root  3869895 Oct 19 12:34 System.map-4.4.0-45-generic
-rw------- 1 root root  4060223 Dec  1 11:02 System.map-4.8.0-30-generic
-rw------- 1 root root  7567120 Apr  6 12:28 vmlinuz-4.10.0-19-generic
-rw------- 1 root root  7569048 Apr 10 19:36 vmlinuz-4.10.0-19-generic.efi.signed
-rw------- 1 root root  7053568 Oct 12  2016 vmlinuz-4.4.0-43-generic
-rw------- 1 root root  7055480 Oct 17  2016 vmlinuz-4.4.0-43-generic.efi.signed
-rw------- 1 root root  7054208 Oct 19 12:34 vmlinuz-4.4.0-45-generic
-rw------- 1 root root  7056120 Oct 20 12:50 vmlinuz-4.4.0-45-generic.efi.signed
-rw------- 1 root root  7464736 Dec  1 11:02 vmlinuz-4.8.0-30-generic
-rw------- 1 root root  7466648 Dec  6 01:23 vmlinuz-4.8.0-30-generic.efi.signed
    
por Tom Mercer 19.04.2017 / 09:04

1 resposta

2

Estou assumindo que você deseja manter o 4,10 e remover todo o resto.

Certifique-se de estar executando o 4.10 e simplesmente

cd /boot
sudo rm abi-4.4* abi-4.8* config-4.4* config-4.8* initrd.img-4.4* initrd.img-4.8* System.map-4.4* System.map-4.8* vmlinuz-4.4* vmlinuz-4.8*
cd /lib/modules/
sudo rm -r 4.4.0-43-generic/ 4.4.0-45-generic/ 4.8.0-30-generic/
sudo update-grub
    
por Manoj Sawai 19.04.2017 / 09:26