Skip to main content

kerntop

kerntop is a safe terminal user interface for managing Linux kernel packages on Debian- and Ubuntu-based systems. It is designed for servers and SSH sessions: no graphical desktop or graphical libraries are required.

It presents installed and repository-available kernels in an ncdu-style browser, marks and protects the running kernel, and keeps kernel meta packages out of package actions.

[!WARNING] kerntop can run real apt-get transactions when started as root. From a read-only session, press e to restart through sudo. Read the confirmation dialog and preview a transaction before applying it.

Install

Quick start

Run the latest release without installing it permanently:

$ uv tool run kerntop
$ uvenv run kerntop
$ pipx run kerntop

Install with pip

Install from PyPI with Python 3.11 or newer:

$ pip install kerntop

System prerequisite

kerntop uses Debian's python3-apt bindings to read package state. Install the distribution package if it is not already present:

$ sudo apt-get install python3-apt

On systems where pip installs into a virtual environment, kerntop locates supported system site-package directories so it can use the distribution's python-apt binding. If the binding cannot be loaded, kerntop reports the problem rather than falling back to parsing apt command output.

Usage

Start in read-only mode:

$ kerntop

Start with package-action controls enabled:

$ sudo kerntop

From an unprivileged session, press e to restart kerntop through sudo. The application closes before sudo prompts for your password, so the normal terminal authentication flow works over local terminals and SSH sessions.

Use the arrow keys and Enter to browse kernel series and builds. Press h in the application for the complete key reference. The primary actions are:

  • a toggles the recommended and all-variants views.
  • p previews the contextual install or removal with apt-get --simulate in root mode.
  • q queues a contextual install or removal for one combined transaction in root mode.
  • c reviews, simulates, applies, or clears queued package actions.
  • i installs an available kernel image after confirmation in root mode.
  • d removes an installed, non-running kernel image after confirmation in root mode.
  • u reviews unused versioned development headers and kernel-support packages from the main browser.
  • e restarts kerntop with sudo from a read-only session.
  • r refreshes repository indexes and reloads the cache in root mode; it only reloads the local cache in a read-only session.

Safety model

  • The currently running kernel cannot be selected for removal or purge.
  • The browser warns when no non-running fallback kernel is installed, and repeats that warning before removing the final fallback.
  • Kernel meta packages are protected and are never package-action targets.
  • Package changes require root; unprivileged sessions are read-only.
  • Queued changes can be simulated before their final confirmation.
  • Removal and purge actions require explicit confirmation.
  • Header and kernel-support cleanup lists explicit packages and never runs autoremove automatically.

Scope and current limitations

kerntop supports apt-based Debian- and Ubuntu-based systems. It deliberately has a narrow scope:

  • It requires the distribution-provided python3-apt binding.
  • The available-kernel view comes from the local apt cache. Refresh repository indexes with r in root mode when that cache is stale.
  • Recommended variants follow installed kernel image meta-package dependencies when available, falling back to the running kernel's flavour.
  • Kernel installation targets image packages. Headers and kernel-support packages are handled through their separate cleanup workflow.
  • Package previews, queues, and changes require root mode.
  • It never runs autoremove automatically.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kerntop-0.1.1.tar.gz (17.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kerntop-0.1.1-py3-none-any.whl (23.5 kB view details)

Uploaded Python 3

File details

Details for the file kerntop-0.1.1.tar.gz.

File metadata

  • Download URL: kerntop-0.1.1.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"PikaOS","version":"4","id":"nest","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for kerntop-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7cf53fc281c9ae6a586f2f7e6b4989ef21daf02b2c3df0396032b7bc0d3e88cd
MD5 afebe4ff20b51ab72da173c1925fb919
BLAKE2b-256 71322e4e04db9a99e68d62d5675ba7ede07b660888e41e4aa8048415220ff470

See more details on using hashes here.

File details

Details for the file kerntop-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: kerntop-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 23.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"PikaOS","version":"4","id":"nest","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for kerntop-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e1db07a9ad3a86439eb1828a19d447ec46e753188ba716a5fad8ab5ba540e299
MD5 63b2bc62309f28f77b19ee0718a3cce3
BLAKE2b-256 7f54448f2da4b40fe6f262033be3c545cfba186228e47120b6ccf011f0d54cd9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page