# 使用 Homebrew, MacPorts, Nix 安装 macmon

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

## 安装

```sh
sudo av install brew:macmon
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install macmon
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install macmon
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#macmon
```

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

## 软件包事实

- **软件包键:** brew:macmon
- **软件包管理器:** Homebrew
- **版本:** 0.8.1
- **来源摘要:** Sudoless performance monitoring for Apple Silicon processors
- **主页:** <https://github.com/vladkens/macmon>
- **仓库:** <https://github.com/vladkens/macmon>
- **最后更新:** 2026-07-31T07:13:06Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- macmon (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

macmon is a Rust system-monitoring CLI and TUI for Apple Silicon Macs. Its README emphasizes sudoless access to live power, temperature, CPU, GPU, ANE, memory, and fan metrics.

### 项目历史

The official repository was created in June 2024. The README states that the project was motivated by a need to observe Apple Silicon power consumption while testing local LLM models, without relying on `powermetrics` workflows that require root privileges.

macmon expanded beyond a simple terminal display into JSON output, an HTTP metrics server, Prometheus-format metrics, a Grafana example, launchd service installation for `macmon serve`, and a Rust library API for embedding the sampler in other programs.

### 采用历史

The README documents installation through Homebrew, MacPorts, Cargo, and Nix, and the batch input also records Homebrew, MacPorts, and Nix packages. Repository metadata captured during this run showed more than one thousand GitHub stars within roughly two years of creation, suggesting fast adoption among Apple Silicon power users and monitoring hobbyists.

### 使用方式

Interactive use runs the TUI at a configurable interval. Scripted use centers on `macmon pipe` for JSON samples, while monitoring-stack use centers on `macmon serve`, which exposes `/json` and `/metrics` endpoints and can install a launchd agent at `~/Library/LaunchAgents/com.macmon.plist`.

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

macmon is notable because Apple Silicon telemetry is useful to developers running local AI models, compilers, benchmarks, and long-lived services, but official user-facing tools expose only part of that picture. A package-manager-installable TUI plus Prometheus endpoint makes Mac hardware metrics fit into Unix-style pipelines and observability stacks.

### 时间线

- 2024: Official GitHub repository created.
- 2024: 0.4.x releases published late in the year.
- 2025: 0.6.x releases added to the release stream.
- 2026: 0.7.x releases published, with docs covering HTTP metrics and library use.

### Related projects

- The README explicitly compares the motivation with `asitop` and `powermetrics`, and documents integration with Prometheus and Grafana.

### 来源

- <https://api.github.com/repos/vladkens/macmon>
- <https://api.github.com/repos/vladkens/macmon/releases>
- <https://github.com/vladkens/macmon>
- <https://github.com/vladkens/macmon#readme>
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

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

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

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