{
    "mode": "man",
    "parameter": "LINUX-CHECK-REMOVAL",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/LINUX-CHECK-REMOVAL/1/json",
    "generated": "2026-10-22T13:26:30Z",
    "synopsis": "linux-check-removal VERSION",
    "sections": {
        "NAME": {
            "content": "linux-check-removal - check whether removal of a kernel is safe\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "linux-check-removal VERSION\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "linux-check-removal  is intended to be called from the prerm maintainer scripts of Linux ker‐\nnel packages.\n\nThe VERSION argument must be the kernel version string as shown by uname -r and used in file‐\nnames.\n\nIf the currently running kernel matches VERSION,  linux-check-removal  normally  prompts  the\nuser  to  confirm  this  potentially dangerous action and fails if the user chooses to abort.\nThere are two exceptions to this behaviour:\n\n• If the current environment is a chroot or container, it is assumed that the running  kernel\nis independent of any installed kernel package and the command always quietly succeeds\n\n• If  debconf  prompts are disabled, the command warns if removing the running kernel but al‐\nways succeeds\n\n",
            "subsections": []
        },
        "ENVIRONMENT VARIABLES": {
            "content": "DEBIANFRONTEND\nName of the preferred debconf front-end.  If set to  noninteractive,  debconf  prompts\nare disabled and linux-check-removal always quietly succeeds.\nDPKGMAINTSCRIPTPACKAGE\nName of the package to be removed, automatically set by dpkg.\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "linux-check-removal  and this manual page were written by Ben Hutchings as part of the Debian\nlinux-base package.\n\n6 June 2016                      LINUX-CHECK-REMOVAL(1)",
            "subsections": []
        }
    },
    "summary": "linux-check-removal - check whether removal of a kernel is safe",
    "flags": [],
    "examples": [],
    "see_also": []
}