The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

If you can read me, I'm broken!

Views: 5,107β€…    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: April 8, 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.

⇧ Tagging files on Ubuntu How to disable annoying freedesktop service login sound  β‡©