# 使用 Homebrew, apk, apt, dnf, Nix, pacman, zypper 安装 bpftop

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

## 安装

```sh
sudo av install brew:bpftop
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install bpftop
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add bpftop
```

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

- Debian apt (92%):

```sh
sudo apt install bpftop
```

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

- dnf (92%):

```sh
sudo dnf install bpftop
```

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

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

- pacman (92%):

```sh
sudo pacman -S bpftop
```

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

- zypper (92%):

```sh
sudo zypper install bpftop
```

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

## 软件包事实

- **软件包键:** brew:bpftop
- **软件包管理器:** Homebrew
- **版本:** 0.9.0
- **来源摘要:** Dynamic real-time view of running eBPF programs
- **主页:** <https://github.com/jfernandez/bpftop>
- **仓库:** <https://github.com/jfernandez/bpftop>
- **最后更新:** 2026-07-04T16:53:42+09:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- bpftop (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

bpftop is a top-like terminal monitor for running eBPF programs. It reports runtime, events per second, estimated CPU percentage, process references, and time-series graphs while enabling eBPF runtime statistics only while the tool is active.

### 项目历史

The README describes bpftop as formerly maintained by Netflix and now independently maintained by Jose Fernandez, with Netflix no longer affiliated. The official announcement from Netflix introduced it as a way to streamline eBPF performance optimization.

The project appeared publicly in 2024, with a v0.1.0 tag in February 2024. Its README now documents install scripts, distribution packages, Linux kernel requirements, libelf/libz dependencies, journald integration, and a Rust/Cargo build.

### 采用历史

bpftop's adoption path is tied to the rise of eBPF observability. The README points users to package-manager installs from Fedora, Arch Linux, and Nix, and the Homebrew input records additional packaging in apk, brew, Debian, Fedora, Nix, pacman, and zypper.

Because it requires root privileges and kernel eBPF statistics, adoption is mostly among systems, performance, and observability engineers rather than general CLI users.

### 使用方式

The normal workflow is `sudo bpftop`, optionally with a refresh delay. Users navigate with arrow keys or vim-style keys, filter programs, sort columns, and enter graph views for a selected eBPF program.

Internally, the README says bpftop uses the Linux `BPF_ENABLE_STATS` syscall command, samples statistics, and disables statistics gathering when the file descriptor is dropped on exit.

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

bpftop is significant because it packages a modern kernel-observability niche into a familiar top-like interface. For package maintainers, it is also a compact example of the newer Rust-plus-Linux-system-libraries tooling showing up in traditional Unix package collections.

Its package metadata tells a useful story: a tool announced from Netflix, later maintained independently, spreading quickly through Linux distributions and Homebrew because eBPF became operationally important.

### 时间线

- 2024: Official repository was created and v0.1.0 was tagged in February.
- 2024: Netflix announced bpftop for eBPF performance optimization.
- 2026: v0.9.0 tag appears in the official GitHub repository.
- Current: README states the project is now independently maintained by Jose Fernandez.

### Related projects

- bpftop belongs with eBPF observability tools such as bpftrace, BCC tools, libbpf-based utilities, and kernel performance monitors.
- Its interface lineage is the Unix `top` family: live tabular system state with sorting, filtering, and drill-down views.

### 来源

- <https://github.com/jfernandez/bpftop#readme>
- <https://netflixtechblog.com/announcing-bpftop-streamlining-ebpf-performance-optimization-6a727c1ae2e5>
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 其他软件包管理器记录

- Debian apt - bpftop - 0.5.2.20.gc23a822-2+b1: normalized package name match | Debian stable package indexes: bpftop from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Provides a dynamic real-time view of running eBPF programs | https://github.com/Netflix/bpftop
- Nix - bpftop: normalized package name match | nixpkgs package indexes: pkgs/by-name/bp/bpftop/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - bpftop - 0.9.0-r0: normalized package name match | Alpine Linux edge package indexes: bpftop from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Dynamic real-time view of running eBPF programs | https://github.com/Netflix/bpftop
- dnf - bpftop - 0.9.0-4.fc45: normalized package name match | Fedora Rawhide package metadata: bpftop from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Dynamic real-time view of running eBPF programs | https://github.com/jfernandez/bpftop
- pacman - bpftop - 0.8.0-1: normalized package name match | Arch Linux sync databases: bpftop from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Dynamic real-time view of running eBPF programs | https://github.com/jfernandez/bpftop
- zypper - bpftop - 0.7.1-1.7: normalized package name match | openSUSE Tumbleweed package metadata: bpftop from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Dynamic real-time view of running eBPF programs | https://github.com/Netflix/bpftop


## Combined YAML source

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


## 来源

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