Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper 安装 htop

查看 htop 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install htop

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install htop

MacPorts ports tree · sysutils/htop/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add htop

Alpine Linux edge package indexes · htop · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install htop

Debian stable package indexes · htop · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install htop

Fedora Rawhide package metadata · htop · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#htop

nixpkgs package indexes · pkgs/by-name/ht/htop/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S htop

Arch Linux sync databases · htop · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install htop

openSUSE Tumbleweed package metadata · htop · 来源: download.opensuse.org

概览

软件包摘要

Improved top (interactive process viewer)

历史

项目历史与用法

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.

项目历史

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.

采用历史

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.

使用方式

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.

为什么软件包爱好者会关心

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.

时间线

  • 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.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 1 个运行时依赖。
  • 构建元数据列出 4 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

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

Config paths the tool may read or write during local use.

Unix
~/.config/htop/htoprc$HTOPRC

可执行文件

已安装的可执行文件

命令类型暴露范围备注
htopcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本3.5.2
管理器更新时间2026-07-18
本地数据OK
上游当前
检测到的最新版本3.5.2

https://github.com/htop-dev/htop

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:htop
版本3.5.2
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/htop
主页https://htop.dev/
仓库https://github.com/htop-dev/htop
上游文档https://github.com/htop-dev/htop#readme
许可证GPL-2.0-or-later
源码归档https://github.com/htop-dev/htop/archive/refs/tags/3.5.2.tar.gz
最后更新2026-07-18T18:44:08Z
Pulseupdated
依赖ncurses
构建依赖autoconf, automake, libtool, pkgconf
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明
注意事项htop requires root privileges to correctly display all running processes, so you will need to run `sudo htop`. You should be certain that you trust any software you grant root privileges.

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namehtop
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

htop 3.4.1-5

interactive processes viewer

https://htop.dev/

sudo apt install htop
  • Section: utils
  • Architecture: amd64
  • 3 依赖
  • 3 可选依赖
  • normalized package name match
  • 匹配方式:Htop
Debian stable package indexes · deb.debian.org · Debian stable package indexes: htop from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

htop

nix profile install nixpkgs#htop
  • normalized package name match
  • 匹配方式:Htop
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ht/htop/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

htop 3.3.0-4build1

interactive processes viewer

https://htop.dev/

sudo apt install htop
  • Section: utils
  • Architecture: amd64
  • 5 依赖
  • 3 可选依赖
  • normalized package name match
  • 匹配方式:Htop
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: htop from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
apk95%

htop 3.5.1-r1

Interactive process viewer

https://htop.dev/

sudo apk add htop
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: htop
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Htop
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: htop from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

htop-doc 3.5.1-r1

Interactive process viewer (documentation)

https://htop.dev/

sudo apk add htop-doc
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: htop
  • normalized package name match
  • 匹配方式:Htop
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: htop-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
dnf95%

htop 3.4.1-3.fc44

Interactive process viewer

https://htop.dev/

sudo dnf install htop
  • License: GPL-2.0-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: htop
  • 7 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Htop
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: htop from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

htop 3.5.1-1

Interactive process viewer

https://htop.dev/

sudo pacman -S htop
  • License: GPL
  • Architecture: x86_64
  • 5 依赖
  • 3 可选依赖
  • normalized package name match
  • 匹配方式:Htop
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: htop from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

htop 3.5.1-2.1

An Interactive text-mode Process Viewer for Linux

https://htop.dev

sudo zypper install htop
  • License: GPL-2.0-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: htop
  • 9 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Htop
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: htop from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

htop

sudo port install htop
  • normalized package name match
  • 匹配方式:Htop
MacPorts ports tree · api.github.com · MacPorts ports tree: sysutils/htop/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment