Skip to content

Installing btop

btop is a single program with no moving parts beyond itself: install it, run btop, and the screen from chapter 1 appears. This chapter covers the two honest routes — your system's package manager, and the project's own release files — and the check that proves what you got.

The package-manager route

Most Linux distributions carry btop in their standard repositories:

sudo apt install btop      # Debian, Ubuntu
sudo dnf install btop      # Fedora
sudo pacman -S btop        # Arch
brew install btop          # macOS (Homebrew)

The trade-off is freshness: a distribution package is tested with your system but may lag the project by a version or two. That is usually fine — the screen, the keys and the config file in this guide have been stable across versions — but if a chapter names something your copy lacks, version lag is the first suspect (chapter 11).

The release route

The project also publishes ready-made builds on its GitHub releases page (github.com/aristocratos/btop). The lab used this route, downloading the btop-x86_64-unknown-linux-musl.tar.gz file for version 1.4.8 — a static build, meaning everything it needs is inside the one binary, so it runs without installing libraries. Unpacked, it gives a btop folder whose bin/btop is the program, alongside theme files this guide returns to in chapter 11.

Whichever route you take, prove the install before believing it:

btop --version

The lab's answer, with the formatting codes stripped:

btop version: 1.4.8+87bb161
Compiled with: /opt/x-tools/x86_64-unknown-linux-musl/bin/x86_64-unknown-linux-musl-g++ (16.2.0)
Configured with: make STATIC=true GPU_SUPPORT=false RSMI_STATIC=

Three things are worth reading there. The version, obviously. STATIC=true: the release build carries its own libraries. And GPU_SUPPORT=false: this particular build has no graphics processor support compiled in — a fact about the build, not about btop, and the reason the lab's GPU box never appears. Your package-manager build may say otherwise; chapter 10 is honest about what depends on it.

btop --help lists the command-line options. The ones this guide uses:

  -c, --config <file>     Path to a config file
  -f, --filter <filter>   Set an initial process filter
  -p, --preset <id>       Start with a preset (0-9)
  -t, --tty               Force tty mode with ANSI graph symbols and 16 colors only
  -u, --update <ms>       Set an initial update rate in milliseconds
      --default-config    Print default config to standard output

The first run

Run btop, look around, and quit with q (or Ctrl+C, which btop treats the same). Two things have now happened in your home folder: btop has created ~/.config/btop/ to hold its affairs — a themes folder, and, written at the moment you quit cleanly, the config file ~/.config/btop/btop.conf. The emphasis is chapter 8's whole story: the file is written on a clean exit, so a btop that is killed, crashes, or loses its terminal takes its unsaved settings with it. The lab proved this the hard way so the troubleshooting chapter could describe it first-hand.

Check: btop --version answers with the version you expected, btop opens the full screen, q leaves your terminal as it found it, and ~/.config/btop/btop.conf exists. If all four hold, chapter 3 can start reading the screen.