# 使用 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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/mactop>
- **版本:** 2.1.5
- **来源摘要:** Apple Silicon Monitor Top written in Go Lang
- **主页:** <https://github.com/metaspartan/mactop>
- **仓库:** <https://github.com/metaspartan/mactop>
- **许可证:** MIT
- **源码归档:** <https://github.com/metaspartan/mactop/archive/refs/tags/v2.1.5.tar.gz>
- **最后更新:** 2026-07-29T17:04:49+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- mactop (cli)
- mactop (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- 服务: declared
- Bottle: 可用 于 arm64_sequoia, arm64_sonoma, arm64_tahoe

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.1.5
- 管理器更新时间: 2026-07-29
- 本地数据: OK
- 上游仓库: https://github.com/metaspartan/mactop
- 检测到的最新版本: v2.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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** mactop
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Requirements:** arch, macos
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- 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


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [asitop](https://pkg.so/zh-hans/brew/asitop/) - Shares pkgdb curated category or tags: apple-silicon, cli, macos, monitoring, system.
- [macmon](https://pkg.so/zh-hans/brew/macmon/) - Shares pkgdb curated category or tags: apple-silicon, cli, macos, monitoring, system.
- [devcockpit](https://pkg.so/zh-hans/brew/devcockpit/) - Shares pkgdb curated category or tags: apple-silicon, cli, macos, monitoring, system.
- [pv](https://pkg.so/zh-hans/brew/pv/) - Shares pkgdb curated category or tags: cli, monitoring, system.
- [duf](https://pkg.so/zh-hans/brew/duf/) - Shares pkgdb curated category or tags: cli, monitoring, system.
- [osx-cpu-temp](https://pkg.so/zh-hans/brew/osx-cpu-temp/) - Shares pkgdb curated category or tags: cli, macos, monitoring, system.
- [node_exporter](https://pkg.so/zh-hans/brew/node-exporter/) - Shares pkgdb curated category or tags: cli, monitoring, system.
- [netdata](https://pkg.so/zh-hans/brew/netdata/) - Shares pkgdb curated category or tags: cli, monitoring, system.
- [apachetop](https://pkg.so/zh-hans/brew/apachetop/) - Local package facts share a topical domain. Shared terms: cli, monitoring, system, top.
- [batt](https://pkg.so/zh-hans/brew/batt/) - Local package facts share a topical domain. Shared terms: apple, apple-silicon, cli, macos, silicon.

## 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
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
