Skip to main content

kerntop

kerntop is a terminal user interface for inspecting and 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 the running kernel, and keeps kernel meta packages out of package actions.

[!WARNING] kerntop 0.0.8 is an early release. It can run real apt-get transactions when started as root. 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

kerntop uses Debian's python3-apt bindings to read package state. Install that 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

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.
  • q queues a contextual install or removal for one combined transaction.
  • i installs an available kernel image after confirmation.
  • d removes an installed, non-running kernel image after confirmation.
  • u reviews unused versioned headers and kernel-support packages.

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.
  • Header and kernel-support cleanup lists explicit packages and never runs autoremove automatically.

Scope and current limitations

The local apt cache supplies the available-kernel view; 0.0.8 does not refresh repository indexes itself. Kernel images are installed as image packages, while headers and support packages are handled separately. See PLAN.md for the remaining MVP safety work.

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.0.8.tar.gz (15.1 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.0.8-py3-none-any.whl (20.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kerntop-0.0.8.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Linux Mint","version":"22.3","id":"zena","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.0.8.tar.gz
Algorithm Hash digest
SHA256 ac66490b6262e1e0b6c0d77d68c0713de03d37b3aac6efafe690e63014d9383f
MD5 e782a38a58619196cf936b6e554dc5ed
BLAKE2b-256 926baf2bbc202c45748ae1b8cb0a806de0a0a2dcf132cc98036e282b364edda3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kerntop-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 20.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Linux Mint","version":"22.3","id":"zena","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.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 7547ef184c2f818ba83ac4886e13608c6d49fc781883e945a5682054155a0086
MD5 79c6181901c34f7d14900632a33605c1
BLAKE2b-256 916d66301ad94f3ab3a7e435956fb6c54a76dd4ed20867627a7269447e9a103a

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