# 使用 Homebrew 安装 cortex

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

## 安装

```sh
sudo av install brew:cortex
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cortex
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:cortex
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/cortex>
- **版本:** 1.21.1
- **来源摘要:** Long term storage for Prometheus
- **主页:** <https://cortexmetrics.io/>
- **仓库:** <https://github.com/cortexproject/cortex>
- **上游文档:** <https://cortexmetrics.io/>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/cortexproject/cortex/archive/refs/tags/v1.21.1.tar.gz>
- **最后更新:** 2026-07-25T14:20:51-04:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- cortex (cli)
- cortex (别名)

## 构建依赖

- go

## 安装行为

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

## 版本和新鲜度

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

Cortex is a horizontally scalable, highly available, multi-tenant long-term storage system for Prometheus and OpenTelemetry metrics. It is normally deployed as a server-side observability backend rather than used as a local CLI tool.

### 项目历史

The official Cortex documentation states that the project was started by Tom Wilkie and Prometheus co-founder Julius Volz in June 2016. The public GitHub repository was created later in 2016, and the README describes a system built for scale, high availability, multi-tenancy, and long-term object storage.

### 采用历史

Cortex's adoption history is tied to Prometheus remote write and cloud-native observability. The official documentation's further-reading section traces public talks from PromCon 2016 through KubeCon sessions, and lists managed or production-oriented material from Grafana Labs, AWS, CNCF, and other operators.

### 使用方式

Operators deploy Cortex as single-binary or microservices components. Prometheus instances push samples via remote write, while Cortex distributes, ingests, stores, and queries data across long-term storage backends such as S3, GCS, Swift, and Azure.

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

Cortex matters to package and infrastructure maintainers because it turns Prometheus from a single-node time-series database into a multi-tenant distributed system. Packaging is only a small part of the story; configuration, Kubernetes deployment, storage backends, ring state, and service topology dominate real-world distribution.

### 时间线

- 2016: Cortex project started in June by Tom Wilkie and Julius Volz.
- 2016: Public GitHub repository created in September.
- 2018: Official documentation lists CNCF and KubeCon materials presenting Cortex as scalable Prometheus.
- 2026: Official GitHub releases include the v1.21.x series.

### Related projects

- Related projects include Prometheus, OpenTelemetry Metrics, Thanos, Grafana Mimir, Alertmanager, and cloud object stores used for long-term metrics storage.

### 来源

- <https://github.com/cortexproject/cortex>
- <https://raw.githubusercontent.com/cortexproject/cortex/master/README.md>
- <https://cortexmetrics.io/docs/>
- <https://cortexmetrics.io/docs/architecture/>
- <https://api.github.com/repos/cortexproject/cortex>
- <https://api.github.com/repos/cortexproject/cortex/releases>


## 安全说明

formula declares a Homebrew service.

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

## 源数据库详情

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


## 相关链接

- [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.
- [filebeat](https://pkg.so/zh-hans/brew/filebeat/) - Shares pkgdb curated category or tags: cli, data, observability.
- [telegraf](https://pkg.so/zh-hans/brew/telegraf/) - Shares pkgdb curated category or tags: cli, data, metrics, observability.
- [fluent-bit](https://pkg.so/zh-hans/brew/fluent-bit/) - Shares pkgdb curated category or tags: cli, data, metrics, observability.
- [victoriametrics](https://pkg.so/zh-hans/brew/victoriametrics/) - 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.
- [loki](https://pkg.so/zh-hans/brew/loki/) - Shares pkgdb curated category or tags: cli, data, observability.
- [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.

## Combined YAML source

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