LINUX-CHECK-REMOVAL(1)

πŸ“¦
version 4.17ubuntu1 Β· 2 versions
, in debian bookworm, debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ 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 to noninteractive, debconf prompts are turned off and linux-check-removal always 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