# 使用 Homebrew, apk, chocolatey, dnf, MacPorts, Nix, pacman, zypper, scoop 安装 grafana

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

## 安装

```sh
sudo av install brew:grafana
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install grafana
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install grafana
```

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

### Linux

- apk (92%):

```sh
sudo apk add grafana
```

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

- dnf (92%):

```sh
sudo dnf install grafana
```

  证据: Fedora Rawhide package metadata: grafana 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#grafana
```

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

- pacman (92%):

```sh
sudo pacman -S grafana
```

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

- zypper (92%):

```sh
sudo zypper install grafana
```

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

### Windows

- Chocolatey (92%):

```sh
choco install grafana
```

  证据: Chocolatey community package catalog: grafana from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','google-workspace-sync'

- Scoop (92%):

```sh
scoop install extras/grafana
```

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

## 软件包事实

- **软件包键:** brew:grafana
- **软件包管理器:** Homebrew
- **版本:** 13.1.1
- **来源摘要:** Gorgeous metric visualizations and dashboards for timeseries databases
- **主页:** <https://grafana.com>
- **仓库:** <https://github.com/grafana/grafana>
- **最后更新:** 2026-07-21T12:29:39Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- grafana (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Grafana is an open source analytics and visualization platform centered on dashboards for time-series and observability data. In package-manager culture it is both a server package and a gateway into the broader Grafana Labs observability stack.

### 项目历史

Torkel Odegaard began Grafana as a fork of Kibana while experimenting with ways to query and visualize Graphite data. The first public release, Grafana v1.0, appeared on January 19, 2014 with a Graphite query editor, templating, and dashboard storage through the Kibana 3 base.

Grafana v2 added a Go backend in 2015 so dashboards and users could be stored without relying on Elasticsearch. The project then expanded beyond its Graphite roots into a multi-data-source dashboard system with plugins, alerting, and a long-running commitment to dashboard compatibility.

Grafana Labs' own history of the UX describes v3 and v4 as the period when the plugin system, panel plugins, grafana.net, and alerting became central. Grafana v5 reworked dashboard layout around a grid system, reducing the awkward row model while preserving older dashboards.

### 采用历史

Grafana's early adoption came from the Graphite community because it made Graphite queries easier to read and edit and offered interactive dashboards that were more approachable than JSON-only alternatives. That origin explains why package managers adopted it as a developer and operations staple rather than a narrow visualization app.

As Prometheus, Loki, Tempo, Mimir, and OpenTelemetry grew around cloud-native observability, Grafana became the visual layer many teams installed locally or as a service. Homebrew users commonly install it to run dashboards during development, test plugins, or mirror production observability setups.

### 使用方式

A packaged Grafana install usually runs the server executable, reads grafana.ini from the platform config path, and serves dashboards through a web UI. Administrators add data sources, dashboards, users, alert rules, and plugins, while developers often use the package as a local observability workbench.

The bundled Grafana server CLI is a separate administration surface for tasks such as plugin management and admin operations, while grafanactl and gcx address Grafana-as-code workflows outside the server package.

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

Grafana is a classic package-manager heavyweight: a Go service with frontend assets, config files, service definitions, plugin directories, and many downstream integrations. Its packaging tells users where state and config live, how upgrades preserve dashboards, and how the local service joins a larger metrics/logs/traces toolchain.

For package nerds, Grafana also marks the shift from single-purpose time-series graphing tools toward composable observability stacks, where the visualization package is the user-facing hub for several backend packages.

### 时间线

- 2014-01-19: Grafana v1.0 public release.
- 2015: Grafana v2 introduced a Go backend.
- 2016: Grafana v3 introduced a more formal plugin system and grafana.net.
- 2016: Grafana v4 added alerting.
- 2018: Grafana v5 moved dashboards to a new grid layout system.
- 2019: Grafana v6 improved visualization switching and panel editing.

### Related projects

- Graphite and Kibana shaped Grafana's origin.
- Prometheus, Loki, Tempo, Mimir, Alloy, and OpenTelemetry are common parts of the same observability stack.
- grafanactl and gcx are related command-line tools for Grafana resource management.

### 来源

- <https://grafana.com/blog/4-years-of-grafana/>
- <https://grafana.com/blog/the-mostly-complete-history-of-grafana-ux/>
- <https://grafana.com/docs/grafana/latest/>
- <https://grafana.com/docs/grafana/latest/administration/cli/>


## 安全说明

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

- Linux: /etc/grafana/grafana.ini
- macOS: /opt/homebrew/etc/grafana/grafana.ini, /usr/local/etc/grafana/grafana.ini
## 其他软件包管理器记录

- Nix - grafana: normalized package name match | nixpkgs package indexes: pkgs/by-name/gr/grafana/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - grafana - 12.4.4-r1: normalized package name match | Alpine Linux edge package indexes: grafana from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Open source, feature rich metrics dashboard and graph editor | https://grafana.com/
- apk - grafana-openrc - 12.4.4-r1: normalized package name match | Alpine Linux edge package indexes: grafana-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Open source, feature rich metrics dashboard and graph editor (OpenRC init scripts) | https://grafana.com/
- dnf - grafana - 12.4.3-3.fc45: normalized package name match | Fedora Rawhide package metadata: grafana from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Metrics dashboard and graph editor | https://grafana.org
- dnf - grafana-selinux - 12.4.3-3.fc45: normalized package name match | Fedora Rawhide package metadata: grafana-selinux from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | SELinux policy module supporting grafana | https://grafana.org
- pacman - grafana - 13.1.1-1: normalized package name match | Arch Linux sync databases: grafana from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Gorgeous metric viz, dashboards & editors for Graphite, InfluxDB & OpenTSDB | https://grafana.com/
- zypper - grafana - 12.4.5-3.2: normalized package name match | openSUSE Tumbleweed package metadata: grafana from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | The open-source platform for monitoring and observability | https://github.com/grafana/grafana
- MacPorts - grafana: normalized package name match | MacPorts ports tree: net/grafana/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - grafana: normalized package name match | Chocolatey community package catalog: grafana from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','google-workspace-sync'
- Scoop - extras/grafana: normalized package name match | Scoop official bucket manifest trees: bucket/grafana.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1


## Combined YAML source

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


## 来源

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