Few days back I compile new kernel for kali linux to install driver. But that doesn't work and I have to remove new kernel packages. Here is command to remove old kernel packages form kali or any debian base linux
root@kali:~# dpkg --purge linux-image-xxxx
Remove xxxx with your image version, revision number
root@kali:~# dpkg --purge linux-image-xxxx
Remove xxxx with your image version, revision number
i by mistake initially installed kernel in ubuntu using make command and didnt created .deb file. now i want to remove that image of kernel and since i didnt created .deb file, i dont see the header in synaptic. what is the best way i can remove kernel which i installed using make command? thanks
ReplyDeleteSame problem posted in askubuntu however you can try above command or apt-get remove kernel image version, or
ReplyDeletethis will remove old kernel other than current...
sudo apt-get remove --purge $(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d')