É seguro remover pacotes linux-image-5.10.0-21-amd64, linux-image-5.10.0-23-amd64? Depois de remover alguns pacotes de idiomas desnecessários do Firefox com dependências, fui solicitado a remover automaticamente alguns pacotes que não eram mais necessários: hunspell-gl-es, hunspell-sv-se, linux-image-5.10.0-21-amd64, linux-image-5.10.0-23-amd64
.
$ sudo apt autoremove
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
hunspell-gl-es hunspell-sv-se linux-image-5.10.0-21-amd64 linux-image-5.10.0-23-amd64
0 upgraded, 0 newly installed, 4 to remove and 0 not upgraded.
After this operation, 636 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 253674 files and directories currently installed.)
Removing hunspell-gl-es (1:7.1.0~rc3-3) ...
Removing hunspell-sv-se (1:7.1.0~rc3-3) ...
Removing linux-image-5.10.0-21-amd64 (5.10.162-1) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.10.0-21-amd64
/etc/kernel/postrm.d/zz-update-grub:
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-5.10.0-25-amd64
Found initrd image: /boot/initrd.img-5.10.0-25-amd64
Found linux image: /boot/vmlinuz-5.10.0-24-amd64
Found initrd image: /boot/initrd.img-5.10.0-24-amd64
Found linux image: /boot/vmlinuz-5.10.0-23-amd64
Found initrd image: /boot/initrd.img-5.10.0-23-amd64
Found linux image: /boot/vmlinuz-5.10.0-9-amd64
Found initrd image: /boot/initrd.img-5.10.0-9-amd64
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
done
Removing linux-image-5.10.0-23-amd64 (5.10.179-3) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.10.0-23-amd64
/etc/kernel/postrm.d/zz-update-grub:
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-5.10.0-25-amd64
Found initrd image: /boot/initrd.img-5.10.0-25-amd64
Found linux image: /boot/vmlinuz-5.10.0-24-amd64
Found initrd image: /boot/initrd.img-5.10.0-24-amd64
Found linux image: /boot/vmlinuz-5.10.0-9-amd64
Found initrd image: /boot/initrd.img-5.10.0-9-amd64
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
done
Editar:
pacotes atuais:
$ apt list -i 'linux-image*'
Listing... Done
linux-image-5.10.0-24-amd64/now 5.10.179-5 amd64 [installed,local]
linux-image-5.10.0-25-amd64/oldstable-security,now 5.10.191-1 amd64 [installed,automatic]
linux-image-5.10.0-26-amd64/oldstable,now 5.10.197-1 amd64 [installed,automatic]
linux-image-5.10.0-9-amd64/now 5.10.70-1 amd64 [installed,local]
linux-image-amd64/oldstable,now 5.10.197-1 amd64 [installed]
Isso deve ser seguro, o apt é muito bom em controlar os kernels necessários; a menos que você tenha um banco de dados apt bastante complicado.
Pode valer a pena verificar seu kernel atualmente ativo (certifique-se de que ele tenha um número de versão superior). O Apt geralmente mantém 2 a 3 gerações de kernels integrados ao grub.
Se você
aptitude
instalou, uma verificação rápida seria:Sem
aptitude
:Ou instale o aptitude ;D