# 使用 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
- **版本:** 1.148.0
- **来源摘要:** Cost-effective and scalable monitoring solution and time series database
- **主页:** <https://victoriametrics.com/>
- **仓库:** <https://github.com/VictoriaMetrics/VictoriaMetrics>
- **最后更新:** 2026-07-26T00:30:33+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- victoria-metrics (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.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

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

- 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


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