# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper, scoop, winget 安装 btop

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

## 安装

```sh
sudo av install brew:btop
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install btop
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install btop
```

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

### Linux

- apk (92%):

```sh
sudo apk add btop
```

  证据: Alpine Linux edge package indexes: btop from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install btop
```

  证据: Debian stable package indexes: btop from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install btop
```

  证据: Fedora Rawhide package metadata: btop 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#btop
```

  证据: nixpkgs package indexes: pkgs/by-name/bt/btop/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S btop
```

  证据: Arch Linux sync databases: btop from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install btop
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/btop
```

  证据: Scoop official bucket manifest trees: bucket/btop.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id aristocratos.btop4win -e
```

  证据: Windows Package Manager source index: aristocratos.btop4win from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:btop
- **软件包管理器:** Homebrew
- **版本:** 1.4.7
- **来源摘要:** Resource monitor. C++ version and continuation of bashtop and bpytop
- **主页:** <https://github.com/aristocratos/btop>
- **仓库:** <https://github.com/aristocratos/btop>
- **最后更新:** 2026-07-07T13:39:35-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- btop (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.4.7
## 项目历史与用法

btop is a C++ terminal resource monitor and the continuation of aristocratos' earlier bashtop and bpytop monitors. It presents CPU, memory, disk, network, process, and GPU information in an interactive terminal UI.

### 项目历史

btop began in May 2021 and reached v1.0.0 in September 2021, when the README announced the Linux version as complete. The project explicitly replaced the shell and Python implementations with a C++ version that could gather system information directly.

The project quickly expanded beyond Linux: macOS support landed with v1.1.0 in November 2021, FreeBSD support with v1.2.0 in January 2022, OpenBSD and Linux GPU monitoring with v1.3.0 in January 2024, and NetBSD plus Intel GPU support with v1.4.0 in September 2024.

### 采用历史

btop became broadly packaged across Unix and Windows-oriented ecosystems. The README includes a Repology packaging badge and the input records packages for Alpine, Homebrew, Debian, Fedora, MacPorts, Nix, Arch, Scoop, Ubuntu, winget, and zypper.

Its adoption benefited from continuity with bashtop and bpytop themes and user expectations, while the C++ rewrite made it more suitable as a fast, native package-manager install than the earlier Bash and Python monitors.

### 使用方式

Users run btop as an interactive terminal monitor to inspect resource graphs, per-process activity, disks, network interfaces, and supported GPU telemetry. It stores settings in btop.conf under the XDG config path or ~/.config/btop and can reuse btop++/bpytop/bashtop-style themes.

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

btop is one of the canonical modern terminal-monitor packages: visually rich, cross-platform, actively packaged, and descended from a trilogy of Bash, Python, and C++ implementations by the same author. For package nerds it is a neat case study in rewriting a beloved script utility into a native package without losing the UI culture around themes and terminal ergonomics.

### 时间线

- 2021: Repository starts and v1.0.0 marks the complete Linux release.
- 2021: v1.1.0 adds macOS support.
- 2022: v1.2.0 adds FreeBSD support.
- 2024: v1.3.0 adds Linux GPU monitoring and OpenBSD support.
- 2024: v1.4.0 adds Intel GPU support and NetBSD support.

### Related projects

- bashtop is the original Bash resource monitor in the lineage.
- bpytop is the Python port and continuation of bashtop.
- btop4win is a Windows-focused related release linked from the btop README.
- Repology is linked by the README to show packaging status across distributions.

### 来源

- Local git history from https://github.com/aristocratos/btop shows first commit in 2021 and tags v1.0.0, v1.1.0, v1.2.0, v1.3.0, and v1.4.0.
- Official README describes btop as the C++ version and continuation of bashtop and bpytop: https://raw.githubusercontent.com/aristocratos/btop/main/README.md
- Official README news records v1.0.0 Linux completion, macOS, FreeBSD, GPU/OpenBSD, and NetBSD/Intel GPU milestones: https://raw.githubusercontent.com/aristocratos/btop/main/README.md
- Official bashtop and bpytop READMEs document the Bash and Python predecessor lineage: https://github.com/aristocratos/bashtop and https://github.com/aristocratos/bpytop
- Package-manager adoption from source_facts.package-manager.


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- 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: $XDG_CONFIG_HOME/btop/btop.conf, ~/.config/btop/btop.conf
## 其他软件包管理器记录

- Debian apt - btop - 1.3.2-0.1: normalized package name match | Debian stable package indexes: btop from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Modern and colorful command line resource monitor that shows usage and stats | https://github.com/aristocratos/btop
- Nix - btop: normalized package name match | nixpkgs package indexes: pkgs/by-name/bt/btop/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - btop - 1.3.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: btop from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Modern and colorful command line resource monitor that shows usage and stats | https://github.com/aristocratos/btop
- apk - btop - 1.4.7-r0: normalized package name match | Alpine Linux edge package indexes: btop from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Resource monitor | https://github.com/aristocratos/btop
- apk - btop-doc - 1.4.7-r0: normalized package name match | Alpine Linux edge package indexes: btop-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Resource monitor (documentation) | https://github.com/aristocratos/btop
- dnf - btop - 1.4.7-2.fc45: normalized package name match | Fedora Rawhide package metadata: btop from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Modern and colorful command line resource monitor that shows usage and stats | https://github.com/aristocratos/btop
- pacman - btop - 1.4.7-1: normalized package name match | Arch Linux sync databases: btop from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A monitor of system resources, bpytop ported to C++ | https://github.com/aristocratos/btop
- zypper - btop - 1.4.7+git20260501.6e39144-1.2: normalized package name match | openSUSE Tumbleweed package metadata: btop from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Usage and stats for processor, memory, disks, network and processes | https://github.com/aristocratos/btop
- MacPorts - btop: normalized package name match | MacPorts ports tree: sysutils/btop/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/btop: normalized package name match | Scoop official bucket manifest trees: bucket/btop.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - aristocratos.btop4win: normalized package name match | Windows Package Manager source index: aristocratos.btop4win from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

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


## 来源

- 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
