Views:
5,561β
Votes: 6β
Tags:
16.04
kernel
updates
pinning
Link:
π See Original Answer on Ask Ubuntu β§ π
URL:
https://askubuntu.com/q/1049234
Title:
Pin kernel version
ID:
/2018/06/24/Pin-kernel-version
Created:
June 24, 2018
Edited: June 24, 2018
Upload:
September 15, 2024
Layout: post
TOC:
false
Navigation: false
Copy to clipboard: false
To prevent the kernel from getting purged by sudo apt autoremove
, pin the kernel using:
sudo apt-mark hold linux-image-4.13.0-26-generic linux-headers-4.13.0-26-generic
If you boot with version -26
and run autoremove
without pinning the kernel first, it still wonβt be removed because you booted with it. If you boot with the newest kernel version and run autoremove
then -26
will be purged if itβs not the most recent or the next most recent version installed.