Difference between revisions of "Disabling Kernel Updates in Ubuntu/Debian"
From Notes_Wiki
|  (Created page with "Home > Ubuntu > Disabling Kernel Updates in Ubuntu/Debian         Home > Ubuntu > Disabling Kernel Updates in Ubuntu/Debian") | |||
| Line 1: | Line 1: | ||
| [[Main Page|Home]] > [[Ubuntu]] > [[Disabling Kernel Updates in Ubuntu/Debian]] | [[Main Page|Home]] > [[Ubuntu]] > [[Disabling Kernel Updates in Ubuntu/Debian]] | ||
| <span id="disabling-kernel-updates-in-ubuntudebian"></span> | |||
| = Disabling Kernel Updates in Ubuntu/Debian = | |||
| <span id="check-current-kernel"></span> | |||
| == 1. Check Current Kernel == | |||
| <pre>uname -r</pre> | |||
| <span id="list-installed-kernels"></span> | |||
| == 2. List Installed Kernels == | |||
| <pre>dpkg --list | grep linux-image</pre> | |||
| <span id="hold-the-current-kernel"></span> | |||
| == 3. Hold the Current Kernel == | |||
| <pre>sudo apt-mark hold linux-image-generic linux-headers-generic linux-modules-extra-$(uname -r)</pre> | |||
| <span id="verify-the-hold"></span> | |||
| == 4. Verify the Hold == | |||
| <pre>apt-mark showhold</pre> | |||
| '''Example Output:''' | |||
| <pre>linux-image-generic | |||
| linux-headers-generic | |||
| linux-modules-extra-6.8.0-71-generic</pre> | |||
| <span id="to-re-enable-kernel-updates"></span> | |||
| == 5. To Re-enable Kernel Updates == | |||
| <pre>sudo apt-mark unhold linux-image-generic linux-headers-generic linux-modules-extra-$(uname -r)</pre> | |||
| [[Main Page|Home]] > [[Ubuntu]] > [[Disabling Kernel Updates in Ubuntu/Debian]] | [[Main Page|Home]] > [[Ubuntu]] > [[Disabling Kernel Updates in Ubuntu/Debian]] | ||
Latest revision as of 09:09, 20 August 2025
Home > Ubuntu > Disabling Kernel Updates in Ubuntu/Debian
Disabling Kernel Updates in Ubuntu/Debian
1. Check Current Kernel
uname -r
2. List Installed Kernels
dpkg --list | grep linux-image
3. Hold the Current Kernel
sudo apt-mark hold linux-image-generic linux-headers-generic linux-modules-extra-$(uname -r)
4. Verify the Hold
apt-mark showhold
Example Output:
linux-image-generic linux-headers-generic linux-modules-extra-6.8.0-71-generic
5. To Re-enable Kernel Updates
sudo apt-mark unhold linux-image-generic linux-headers-generic linux-modules-extra-$(uname -r)

