You are not logged in.
Pages: 1
How to uninstall older Linux kernels and dependencies to save space?
Offline
sudo apt search linux-image-* | grep installed
This is mine.
linux-headers-6.12.101+deb13-amd64/stable-security,now 6.12.101-1 amd64 [installed,auto-removable]
linux-headers-6.12.105+deb13-amd64/stable-security,now 6.12.105-1 amd64 [installed,automatic]
linux-headers-6.12.107+deb13-amd64/stable-security,now 6.12.107-1 amd64 [installed,automatic]
linux-headers-6.12.74+deb13+1-amd64/now 6.12.74-2 amd64 [installed,local]
linux-image-6.12.101+deb13-amd64/stable-security,now 6.12.101-1 amd64 [installed,auto-removable]
linux-image-6.12.105+deb13-amd64/stable-security,now 6.12.105-1 amd64 [installed,automatic]
linux-image-6.12.107+deb13-amd64/stable-security,now 6.12.107-1 amd64 [installed,automatic]
linux-image-6.12.48+deb13-amd64/now 6.12.48-1 amd64 [installed,local]
linux-image-6.12.74+deb13+1-amd64/now 6.12.74-2 amd64 [installed,local]
linux-image-amd64/stable-security,now 6.12.107-1 amd64 [installed]I then just step through the list one by one using sudo apt remove to just leave 2 kernels followed by sudo apt autoremove to clear any kbuild and header files
sudo apt remove linux-image-6.12.101+deb13-amd64
The following packages were automatically installed and are no longer required:
linux-headers-6.12.101+deb13-common linux-kbuild-6.12.101+deb13
linux-headers-6.12.74+deb13+1-common linux-kbuild-6.12.74+deb13+1
Use 'sudo apt autoremove' to remove them.
REMOVING:
linux-headers-6.12.101+deb13-amd64 linux-image-6.12.101+deb13-amd64If you have Synaptic installed you can just use that and pick all the ones you want to remove in one go.
Offline
Thanks a lot
For me working solution is Synaptic.
Offline
Pages: 1