# 使用 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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
- **版本:** 3.13.2
- **来源摘要:** Service monitoring system and time series database
- **主页:** <https://prometheus.io/>
- **仓库:** <https://github.com/prometheus/prometheus>
- **最后更新:** 2026-07-30T16:31:28Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

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

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 3.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
## 其他软件包管理器记录

- 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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


## 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
- curated configuration and credential file locations
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
