The Kernel#
1. How to check the kernel version of a Linux system?#
uname commend print system infomation
Run:
uname -a # print all information
uname -r # print the kernel release
uname -v # print the kernel version 2. List installed kernels#
Run:
xbps-query -l | grep linuxor
ls /boot3. Remove older kernels#
sudo xbps-remove -R linux6.6-6.6.21_1 linux6.6-6.6.77_1 linux6.12-6.12.13_1or
sudo rm config-6.12.23_1 initramfs-6.12.23_1.img vmlinuz-6.12.23_14. Update GRUB (if using GRUB)#
After removing old kernels, update GRUB so it doesn’t list them:
sudo xbps-reconfigure -f grubor
if you are using grub-mkconfig:
sudo grub-mkconfig -o /boot/grub/grub.cfg