# 使用 Homebrew, Nix, apt, apk 安装 victoriametrics

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

## 安装

```sh
sudo av install brew:victoriametrics
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install victoriametrics
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#victoriametrics
```

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

- Debian apt (92%):

```sh
sudo apt install golang-github-victoriametrics-victoriametrics-dev
```

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

- apk (92%):

```sh
sudo apk add victoria-metrics
```

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

## 软件包事实

- **软件包键:** brew:victoriametrics
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/victoriametrics>
- **版本:** 1.148.0
- **来源摘要:** Cost-effective and scalable monitoring solution and time series database
- **主页:** <https://victoriametrics.com/>
- **仓库:** <https://github.com/VictoriaMetrics/VictoriaMetrics>
- **上游文档:** <https://victoriametrics.com/>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/VictoriaMetrics/VictoriaMetrics/archive/refs/tags/v1.148.0.tar.gz>
- **最后更新:** 2026-07-26T00:30:33+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- victoria-metrics (cli)
- victoria-metrics (别名)

## 构建依赖

- go

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.148.0
- 管理器更新时间: 2026-07-26
- 本地数据: OK
- 上游仓库: https://github.com/VictoriaMetrics/VictoriaMetrics
- 检测到的最新版本: v1.148.0 (当前)
## 项目历史与用法

VictoriaMetrics is an open source time-series database and monitoring solution focused on Prometheus-compatible metrics storage, querying, and operational efficiency. It is used as long-term storage for Prometheus, as a Grafana-compatible backend, and as the center of a larger observability suite.

### 项目历史

The public VictoriaMetrics repository was created on 2018-09-30. Its README describes a system designed for fast, cost-effective, scalable monitoring and time-series data management, with both single-node and cluster versions available as open source under Apache License 2.0.

VictoriaMetrics grew from a metrics database into a broader observability ecosystem. The official documentation lists surrounding components such as vmagent, vmalert, vmauth, vmctl, backup and restore tools, cluster components, and VictoriaLogs, showing how the project expanded beyond a single server binary into a suite for ingestion, alerting, migration, backup, and multi-tenant deployment.

### 采用历史

By its fifth anniversary in December 2023, VictoriaMetrics reported 338 million downloads, 2,841 Slack users, 219 contributors, and hundreds of issues, pull requests, features, and bug fixes across the v1.86 to v1.95 release range. The same anniversary post pointed to DB-Engines and GitHub popularity tracking as evidence of adoption in the time-series database space.

### 使用方式

VictoriaMetrics is commonly deployed as a single small executable or as a cluster. It accepts Prometheus remote write and exposition formats, can scrape Prometheus exporters, supports Graphite, InfluxDB, OpenTSDB, DataDog/DogStatsD, NewRelic, OpenTelemetry, CSV, JSON line, and native import formats, and exposes Prometheus-compatible query APIs for Grafana and other tooling.

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

For package and operations nerds, VictoriaMetrics is notable for packaging a serious TSDB as a small, dependency-light binary with command-line flag configuration and strong defaults. That simplicity, combined with Prometheus compatibility and high-cardinality/high-churn performance claims, made it a common alternative to heavier clustered Prometheus long-term-storage stacks such as Thanos, Cortex/Mimir, M3DB, InfluxDB, or TimescaleDB in some deployments.

### 时间线

- 2018-09-30: Public GitHub repository created.
- 2019: VictoriaMetrics participated in the Prometheus remote-write storage ecosystem and later referenced PromCon 2019 remote-write storage comparisons in its docs.
- 2023-12-21: VictoriaMetrics published fifth-anniversary adoption statistics.
- 2024-2026: Regular release cadence continued, including LTS and community releases.
- 2026-06-22: GitHub API listed v1.146.0 and related LTS releases as recent VictoriaMetrics releases.

### Related projects

- VictoriaLogs extends the VictoriaMetrics ecosystem into log storage and analysis.
- vmagent, vmalert, vmctl, vmbackup, vmrestore, vmauth, and the VictoriaMetrics Kubernetes operator are related operational components around the core database.

### 来源

- <https://api.github.com/repos/VictoriaMetrics/VictoriaMetrics>
- <https://api.github.com/repos/VictoriaMetrics/VictoriaMetrics/releases>
- <https://docs.victoriametrics.com/victoriametrics/>
- <https://github.com/VictoriaMetrics/VictoriaMetrics>
- <https://victoriametrics.com/blog/5-year-anniversary-celebrations/>


## 安全说明

formula declares a Homebrew service.

- **Geiger 风险:** orange / 中
- formula declares a Homebrew service

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** victoriametrics
- **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-victoriametrics-victoriametrics-dev - 1.112.0+ds1-2: normalized package name match | Debian stable package indexes: golang-github-victoriametrics-victoriametrics-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | fast, cost-effective and scalable time series database (library) | https://github.com/VictoriaMetrics/VictoriaMetrics
- Debian apt - victoria-metrics - 1.112.0+ds1-2: normalized package name match | Debian stable package indexes: victoria-metrics from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | fast, cost-effective and scalable time series database | https://github.com/VictoriaMetrics/VictoriaMetrics
- Nix - victoriametrics: normalized package name match | nixpkgs package indexes: pkgs/by-name/vi/victoriametrics/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - golang-github-victoriametrics-victoriametrics-dev - 1.79.14+ds1-2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: golang-github-victoriametrics-victoriametrics-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | fast, cost-effective and scalable time series database (library) | https://github.com/VictoriaMetrics/VictoriaMetrics
- Ubuntu apt - victoria-metrics - 1.79.14+ds1-2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: victoria-metrics from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | fast, cost-effective and scalable time series database | https://github.com/VictoriaMetrics/VictoriaMetrics
- apk - victoria-metrics - 1.136.14-r0: installed executable or alias match | Alpine Linux edge package indexes: victoria-metrics from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fast, cost-effective and scalable time series database (LTS) | https://github.com/VictoriaMetrics/VictoriaMetrics
- apk - victoria-metrics-backup-tools - 1.136.14-r0: installed executable or alias match | Alpine Linux edge package indexes: victoria-metrics-backup-tools from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fast, cost-effective and scalable time series database (LTS) (vmbackup, vmrestore) | https://github.com/VictoriaMetrics/VictoriaMetrics
- apk - victoria-metrics-openrc - 1.136.14-r0: installed executable or alias match | Alpine Linux edge package indexes: victoria-metrics-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fast, cost-effective and scalable time series database (LTS) (OpenRC init scripts) | https://github.com/VictoriaMetrics/VictoriaMetrics
- apk - victoria-metrics-tools - 1.136.14-r0: installed executable or alias match | Alpine Linux edge package indexes: victoria-metrics-tools from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fast, cost-effective and scalable time series database (LTS) (vmagent, vmalert, vmauth, vmctl) | https://github.com/VictoriaMetrics/VictoriaMetrics


## 相关链接

- [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.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing 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.
- [telegraf](https://pkg.so/zh-hans/brew/telegraf/) - Shares pkgdb curated category or tags: cli, data, metrics, monitoring.
- [cortex](https://pkg.so/zh-hans/brew/cortex/) - Shares pkgdb curated category or tags: cli, data, metrics, prometheus.
- [influxdb](https://pkg.so/zh-hans/brew/influxdb/) - Shares pkgdb curated category or tags: cli, data, metrics.
- [fluent-bit](https://pkg.so/zh-hans/brew/fluent-bit/) - Shares pkgdb curated category or tags: cli, data, metrics.
- [influxdb@1](https://pkg.so/zh-hans/brew/influxdb-1/) - Shares pkgdb curated category or tags: cli, data, metrics.
- [influxdb@2](https://pkg.so/zh-hans/brew/influxdb-2/) - Shares pkgdb curated category or tags: cli, data, metrics.
- [burrow](https://pkg.so/zh-hans/brew/burrow/) - Shares pkgdb curated category or tags: cli, data, monitoring.
- [check_postgres](https://pkg.so/zh-hans/brew/check-postgres/) - Shares pkgdb curated category or tags: cli, data, monitoring.
- [opentsdb](https://pkg.so/zh-hans/brew/opentsdb/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, data, database, monitoring, scalable.

## Combined YAML source

View the package source record on GitHub. [combined/victoriametrics.yml](https://github.com/mxcl/pkgdb/blob/main/combined/victoriametrics.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
