User Tools

Site Tools


linux:debian:remove-old-kernels

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
linux:debian:remove-old-kernels [2020/05/01 11:03] – created oscarlinux:debian:remove-old-kernels [2022/01/15 11:38] (current) – external edit 127.0.0.1
Line 6: Line 6:
  
 To list all installed kernels on your system, issue this command. To list all installed kernels on your system, issue this command.
-  dpkg -| grep linux-image | awk '{print$2}'+  dpkg --list | grep linux-image
      
-  linux-image-4.19.0-6-amd64 +  ii  linux-image-4.19.0-6-amd64    4.19.67-2+deb10u2           amd64        Linux 4.19 for 64-bit PCs (signed) 
-  linux-image-4.19.0-8-amd64 +  ii  linux-image-4.19.0-8-amd64    4.19.98-1+deb10u1           amd64        Linux 4.19 for 64-bit PCs (signed) 
-  linux-image-amd64+  ii  linux-image-amd64             4.19+105+deb10u3            amd64        Linux for 64-bit PCs (meta-package) 
 + 
 +Do the same for kernel headers: 
 +  dpkg --list | grep linux-headers
  
 Run the commands below to remove a particular linux-image along with its configuration files, then update grub2 configuration, and lastly reboot the system. Run the commands below to remove a particular linux-image along with its configuration files, then update grub2 configuration, and lastly reboot the system.
linux/debian/remove-old-kernels.1588331031.txt.gz · Last modified: (external edit)