# Install htop with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

Improved top (interactive process viewer). Version 3.5.2 via Homebrew; verified 2026-07-28. Also installable with debian: sudo apt install htop.

## Install

```sh
sudo av install brew:htop
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install htop
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install htop
```

  Evidence: MacPorts ports tree: sysutils/htop/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add htop
```

  Evidence: Alpine Linux edge package indexes: htop from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install htop
```

  Evidence: Debian stable package indexes: htop from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install htop
```

  Evidence: Fedora Rawhide package metadata: htop from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#htop
```

  Evidence: nixpkgs package indexes: pkgs/by-name/ht/htop/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S htop
```

  Evidence: Arch Linux sync databases: htop from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install htop
```

  Evidence: openSUSE Tumbleweed package metadata: htop from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## Package facts

- **Package key:** brew:htop
- **Package manager:** Homebrew
- **Version:** 3.5.2
- **Source summary:** Improved top (interactive process viewer)
- **Homepage:** <https://htop.dev/>
- **Repository:** <https://github.com/htop-dev/htop>
- **Last updated:** 2026-07-28T13:41:32+09:00
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- htop (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 3.5.2
## Project history and usage

htop is a cross-platform interactive terminal process viewer and process manager. It became one of the canonical 'install this first' system packages because it made `top`-style process monitoring visual, sortable, searchable, colorful, and keyboard/mouse interactive while staying inside a terminal.

### Project history

The htop-dev README records that htop was invented, developed, and maintained by Hisham Muhammad from 2004 to 2019, with the original repository archived to preserve that history. The legacy README describes the project as an interactive text-mode process viewer for Unix systems that aims to be a better `top`.

A 2016 FOSDEM talk by Muhammad describes the early implementation as Linux-oriented, using `/proc` for process data and ncurses for the interface. The talk also documents the portability story: FreeBSD users used linprocfs, a Mac OS X fork diverged, and a later effort brought cross-platform support back into the main project.

In 2020, after a prolonged period of inactivity by the original maintainer, a volunteer team took over development amicably under the htop-dev organization. The ChangeLog entry for 3.0.0 names the new maintainers, htop.dev, and the htop-dev GitHub repository as the continuation point, while the legacy repository points users to the organization-based repository.

### Adoption history

htop's adoption is broad enough to be almost infrastructural for Unix-like users. The input package facts record it across Homebrew, Debian, Ubuntu, Fedora, MacPorts, Nix, Arch, Alpine, and openSUSE-style packaging. That spread reflects both user familiarity and maintainer demand: the tool is expected on servers, developer laptops, containers, and rescue shells.

The project's portability work also widened adoption beyond the original Linux `/proc` model. Official and historical materials discuss macOS, BSD, Solaris-family, and other Unix-like support, which helped htop become a standard cross-platform terminal monitor rather than only a Linux convenience.

### How it is used

Users run htop to inspect live CPU, memory, swap, load, process state, process trees, command lines, and per-process resource consumption. Its interactive controls make common administration tasks faster: sort by columns, search or filter processes, change views, inspect trees, send signals, and adjust process priorities without leaving the TUI.

Configuration is part of its package identity. The curated input records `~/.config/htop/htoprc` and `$HTOPRC`, matching the way users customize columns, meters, colors, sorting, and display behavior so the same terminal dashboard appears across machines.

### Why package nerds care

For package nerds, htop is a perfect example of a small terminal program becoming a cultural default. It is not a daemon, framework, or library; it is a better everyday view into process state. Its ubiquity makes package availability itself part of the user expectation: if a system package manager exists, users look for htop in it.

The 2020 maintainer transition is also significant. htop shows how a beloved single-maintainer utility can move to a collaborative organization while preserving the old repository, homepage identity, and release line. That is the kind of continuity package ecosystems depend on.

### Timeline

- 2004: htop was invented by Hisham Muhammad.
- 2006: The htop-dev Git tag stream includes the 0.6.1 tag from May.
- 2016: Muhammad presented the FOSDEM talk 'Going cross-platform: how htop was made portable.'
- 2019: The htop-dev README marks the end of Muhammad's original maintenance period.
- 2020: A volunteer team took over development under htop-dev.
- 2020: Version 3.0.0 introduced the htop-dev continuation after the maintainer transition.
- Package-manager era: The input package facts record htop across major Linux, BSD-adjacent, macOS, and cross-platform package managers.

### Related projects

- htop is historically related to Unix `top`, and its ecosystem neighbors include process viewers and system monitors such as `atop`, `glances`, `btop`, `gotop`, and desktop task managers. It also has a lineage connection to terminal UI programs built on ncurses and to platform-specific process APIs that replaced the original Linux-only `/proc` assumptions.

### Sources

- <https://api.github.com/repos/htop-dev/htop/commits/80f344559bba331d6daa2c913005e7eefddcf075>
- <https://api.github.com/repos/htop-dev/htop/commits/dace850fa6e27b5626115b366059258cfe4d60c9>
- <https://api.github.com/repos/htop-dev/htop/tags?per_page=100>
- <https://github.com/hishamhm/htop>
- <https://github.com/htop-dev/htop>
- <https://github.com/htop-dev/htop/blob/main/ChangeLog>
- <https://htop.dev/>
- <https://htop.dev/assets/static/htop_talk_fosdem2016_hisham.pdf>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.config/htop/htoprc, $HTOPRC
## Other Package-Manager Records

- Debian apt - htop - 3.4.1-5: normalized package name match | Debian stable package indexes: htop from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | interactive processes viewer | https://htop.dev/
- Nix - htop: normalized package name match | nixpkgs package indexes: pkgs/by-name/ht/htop/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - htop - 3.3.0-4build1: normalized package name match | Ubuntu 24.04 LTS package indexes: htop from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | interactive processes viewer | https://htop.dev/
- apk - htop - 3.5.2-r0: normalized package name match | Alpine Linux edge package indexes: htop from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Interactive process viewer | https://htop.dev/
- apk - htop-doc - 3.5.2-r0: normalized package name match | Alpine Linux edge package indexes: htop-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Interactive process viewer (documentation) | https://htop.dev/
- dnf - htop - 3.4.1-4.fc45: normalized package name match | Fedora Rawhide package metadata: htop from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Interactive process viewer | https://htop.dev/
- pacman - htop - 3.5.2-1: normalized package name match | Arch Linux sync databases: htop from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Interactive process viewer | https://htop.dev/
- zypper - htop - 3.5.2-1.2: normalized package name match | openSUSE Tumbleweed package metadata: htop from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | An Interactive text-mode Process Viewer for Linux | https://htop.dev
- MacPorts - htop: normalized package name match | MacPorts ports tree: sysutils/htop/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/htop.yml](https://github.com/mxcl/pkgdb/blob/main/combined/htop.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
