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

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

## 安装

```sh
sudo av install brew:prometheus
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install prometheus
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install prometheus
```

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

### Linux

- apk (92%):

```sh
sudo apk add prometheus
```

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

- Debian apt (92%):

```sh
sudo apt install prometheus
```

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

- dnf (92%):

```sh
sudo dnf install prometheus
```

  证据: Fedora Rawhide package metadata: prometheus from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#prometheus
```

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

- pacman (92%):

```sh
sudo pacman -S prometheus
```

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

- zypper (92%):

```sh
sudo zypper install golang-github-prometheus-prometheus
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/prometheus
```

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

## 软件包事实

- **软件包键:** brew:prometheus
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/prometheus>
- **版本:** 3.13.2
- **来源摘要:** Service monitoring system and time series database
- **主页:** <https://prometheus.io/>
- **仓库:** <https://github.com/prometheus/prometheus>
- **上游文档:** <https://prometheus.io/>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/prometheus/prometheus/archive/refs/tags/v3.13.2.tar.gz>
- **最后更新:** 2026-07-30T16:31:28Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- prometheus (cli)
- prometheus_brew_services (cli)
- promtool (cli)
- prometheus (别名)
- prometheus_brew_services (别名)
- promtool (别名)

## 构建依赖

- gnu-tar
- go
- node
- pnpm

## 安装行为

- post-install 钩子: 未定义
- 服务: declared
- 注意事项: When run from `brew services`, `prometheus` is run from `prometheus_brew_services` and uses the flags in: $HOMEBREW_PREFIX/etc/prometheus.args
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 3.13.2
- 管理器更新时间: 2026-07-30
- 本地数据: OK
- 上游仓库: https://github.com/prometheus/prometheus
- 检测到的最新版本: v3.13.2 (当前)

## 安全说明

broad file, network, media, or database tool signal. formula declares a Homebrew service.

- **Geiger 风险:** orange / 中
- broad file, network, media, or database tool signal
- formula declares a Homebrew service


## 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: prometheus.yml
## 源数据库详情

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

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

- Debian apt - golang-github-prometheus-prometheus-dev - 2.53.3+ds1-2: normalized package name match | Debian stable package indexes: golang-github-prometheus-prometheus-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Prometheus monitoring system and time series database (library) | https://prometheus.io/
- Debian apt - prometheus - 2.53.3+ds1-2: normalized package name match | Debian stable package indexes: prometheus from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | monitoring system and time series database | https://prometheus.io/
- Debian apt - promtool - 2.53.3+ds1-2: normalized package name match | Debian stable package indexes: promtool from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | tooling for the Prometheus monitoring system | https://prometheus.io/
- Nix - prometheus: normalized package name match | nixpkgs package indexes: pkgs/by-name/pr/prometheus/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - prometheus - 2.45.3+ds-2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: prometheus from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | monitoring system and time series database | https://prometheus.io/
- apk - prometheus - 3.5.5-r1: normalized package name match | Alpine Linux edge package indexes: prometheus from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | The Prometheus monitoring system and time series database | https://github.com/prometheus/prometheus
- apk - prometheus-openrc - 3.5.5-r1: normalized package name match | Alpine Linux edge package indexes: prometheus-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | The Prometheus monitoring system and time series database (OpenRC init scripts) | https://github.com/prometheus/prometheus
- dnf - prometheus - 3.13.1-2.fc45: normalized package name match | Fedora Rawhide package metadata: prometheus from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Prometheus monitoring system and time series database | https://github.com/prometheus/prometheus
- pacman - prometheus - 3.13.2-1: normalized package name match | Arch Linux sync databases: prometheus from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | An open-source systems monitoring and alerting toolkit | https://prometheus.io
- zypper - golang-github-prometheus-prometheus - 3.13.2-1.1: normalized package name match | openSUSE Tumbleweed package metadata: golang-github-prometheus-prometheus from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | The Prometheus monitoring system and time series database | https://prometheus.io/
- MacPorts - prometheus: normalized package name match | MacPorts ports tree: sysutils/prometheus/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/prometheus: normalized package name match | Scoop official bucket manifest trees: bucket/prometheus.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## 相关链接

- [Cloud CLI packages](https://pkg.so/zh-hans/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [node](https://pkg.so/zh-hans/brew/node/) - Build dependency declared by Homebrew.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [pnpm](https://pkg.so/zh-hans/brew/pnpm/) - Build dependency declared by Homebrew.
- [gnu-tar](https://pkg.so/zh-hans/brew/gnu-tar/) - Build dependency declared by Homebrew.
- [node_exporter](https://pkg.so/zh-hans/brew/node-exporter/) - Shares the same upstream homepage.
- [ktop](https://pkg.so/zh-hans/brew/ktop/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, metrics, monitoring.
- [dtop](https://pkg.so/zh-hans/brew/dtop/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, monitoring.
- [mimirtool](https://pkg.so/zh-hans/brew/mimirtool/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, metrics, observability.
- [newrelic-infra-agent](https://pkg.so/zh-hans/brew/newrelic-infra-agent/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, monitoring, observability.
- [thanos](https://pkg.so/zh-hans/brew/thanos/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, metrics, monitoring.
- [logcli](https://pkg.so/zh-hans/brew/logcli/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, observability.
- [linkerd](https://pkg.so/zh-hans/brew/linkerd/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, observability.
- [kubetui](https://pkg.so/zh-hans/brew/kubetui/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, monitoring.

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
