# 使用 Homebrew, MacPorts, Nix 安装 mactop

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

## 安装

```sh
sudo av install brew:mactop
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install mactop
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install mactop
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#mactop
```

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

## 软件包事实

- **软件包键:** brew:mactop
- **软件包管理器:** Homebrew
- **版本:** 2.1.5
- **来源摘要:** Apple Silicon Monitor Top written in Go Lang
- **主页:** <https://github.com/metaspartan/mactop>
- **仓库:** <https://github.com/metaspartan/mactop>
- **最后更新:** 2026-07-29T17:04:49+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- mactop (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

mactop is a terminal system monitor for Apple Silicon Macs. The project describes itself as a `top`-style monitor for real-time Apple Silicon CPU, GPU, ANE, DRAM, power, temperature, fan, process, and I/O metrics.

### 项目历史

The tool is written in Go with CGO and uses native Apple APIs such as SMC, IOReport, IOKit, and IOHIDEventSystemClient. Its official README frames it as Apple Silicon only, requiring macOS Monterey 12.3 or later.

### 采用历史

mactop became useful in the Apple Silicon era because many traditional Unix monitoring tools do not expose SoC-specific measurements such as efficiency and performance cores, GPU frequency, Neural Engine activity, and power telemetry. Its official repository shows Homebrew installation instructions and a public GitHub project with substantial stars and forks for a platform-specific system tool.

### 使用方式

Users normally run `mactop` interactively for a terminal UI. The README also documents flags for update interval, foreground and background colors, headless JSON output, output formats such as YAML and CSV, Prometheus metrics, and optional menu bar mode.

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

mactop matters to package and systems people because it fills a macOS-on-ARM observability gap from the command line. It is the kind of package developers install immediately after getting Apple Silicon hardware because it exposes metrics that `top`, `htop`, and cross-platform libraries often do not provide.

### 时间线

- Public repository: Official Git tags start at v0.0.1.
- Current README: Documents Homebrew installation, headless output, Prometheus metrics, menu bar mode, and support for all Apple Silicon models.

### Related projects

- mactop is related to traditional terminal monitors such as top and htop, but targets Apple Silicon-specific telemetry through macOS native APIs.

### 来源

- <https://github.com/metaspartan/mactop>
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Nix - mactop: normalized package name match | nixpkgs package indexes: pkgs/by-name/ma/mactop/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - mactop: normalized package name match | MacPorts ports tree: sysutils/mactop/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/mactop.yml](https://github.com/mxcl/pkgdb/blob/main/combined/mactop.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
