LINUX-CHECK-REMOVAL(1)
β¨ LINUX-CHECK-REMOVAL(1) β¨
okay so bestie, this is the manual page for linux-check-removal π§ it's from the General Commands Manual section, and it's giving "check before you delete the kernel" energy π
πΈ NAME πΈ
linux-check-removal β check whether removal of a kernel is safe π«Ά
π SYNOPSIS π
linux-check-removal KERNEL-VER
π¦ DESCRIPTION π¦
okay so linux-check-removal is built to be called from the prerm maintainer scripts of Linux kernel packages. it's the bouncer at the door, no cap πͺπ₯
the KERNEL-VER argument has to be the kernel version string you get from uname -r, the one used in filenames. it is not the package version, so don't mix them up bestie π
if the currently running kernel matches KERNEL-VER, the command normally asks the user to confirm, because removing the kernel you're running on is potentially dangerous π if they say abort, it fails. there are two exceptions though, so pay attention:
- if you're in a chroot or container, it assumes the running kernel has nothing to do with any installed kernel package, so it quietly succeeds every time β¨
- if debconf prompts are disabled, it warns you if you're removing the running kernel, but it always succeeds anyway π
π ENVIRONMENT VARIABLES π
DEBIAN_FRONTENDβ this is the debconf front-end you'd like to use. if it's set tononinteractive, debconf prompts are turned off andlinux-check-removalalways quietly succeeds π«§DPKG_MAINTSCRIPT_PACKAGEβ the name of the package being removed. dpkg sets this automatically, so you don't have to lift a finger π
π§ AUTHOR π§
linux-check-removal and this manual page were written by Ben Hutchings as part of the Debian linux-base package. the queen of kernel safety π
that's the whole page, bestie!! π this was last updated on 6 June 2016, and it's still slaying the kernel removal game β¨π π
π¦ where this page comes from
- debian bookworm: linux-base 4.12.1~deb12u1 Β· GPL-2.0-only
- debian trixie: linux-base 4.12.1 Β· GPL-2.0-only
- ubuntu questing: linux-base 4.14ubuntu2 Β· GPL-2.0-only
- ubuntu resolute: linux-base 4.15ubuntu5 Β· GPL-2.0-only
- ubuntu stonking: linux-base 4.17ubuntu1 Β· GPL-2.0-only
- π girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms