I like managing kernels my self, and I can't figure how to stop apt-get autoremove from deleting older kernels.
apt-get autoremove
, removes files that have been installed automatically and are no longer needed. If you want autoremove not to remove some of them, you can mark them as installed manually. In your case: sudo apt-mark manual
package_name.
If you have installed a mainline kernel, you need to mark 3 packages:
linux-headers-version
linux-headers-version-generic
linux-image-version-generic
If you are using the official kernel, you need to mark one more package:
linux-image-extra-version-generic.
The only thing you have to do is find the correct version and replace the word in the package name. Of course all three or four versions have to be the same.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments