# 使用 Homebrew, MacPorts, Nix 安装 elvis

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

## 安装

```sh
sudo av install brew:elvis
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install elvis
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install elvis
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#elvis
```

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

## 软件包事实

- **软件包键:** brew:elvis
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/elvis>
- **版本:** 5.0.4
- **来源摘要:** Erlang Style Reviewer
- **主页:** <https://github.com/inaka/elvis>
- **仓库:** <https://github.com/inaka/elvis>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/inaka/elvis/archive/refs/tags/5.0.4.tar.gz>
- **最后更新:** 2026-05-29T09:35:35Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- elvis (cli)
- elvis (别名)

## 依赖

- erlang

## 构建依赖

- rebar3

## 安装行为

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

## 版本和新鲜度

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

Elvis is an Erlang style reviewer and command-line linter that checks Erlang source files against configurable rule sets.

### 项目历史

The inaka/elvis repository was created in June 2014 and has continued as a standalone command-line tool around elvis_core, the core library that implements the rules and configuration mechanics.

### 采用历史

The project is distributed through Homebrew, MacPorts, and Nix according to the input package metadata. The official README documents use as a command-line tool, a Git pre-commit hook, and a webhook-oriented component for pull request review.

### 使用方式

Users run elvis commands such as rock, git-branch, and git-hook. By default elvis looks for elvis.config, while the --config option allows a different path.

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

Elvis matters to Erlang package users because it packages style checks into a CLI that can fail builds, run in hooks, and share elvis_core rules across command-line and rebar3-oriented workflows.

### 时间线

- 2014: GitHub repository created
- 2014: 0.1.1 published on GitHub releases
- 2026: 5.0.4 published on GitHub releases and tracked by Homebrew

### Related projects

- elvis_core provides the underlying rule engine and configuration documentation; rebar3_lint uses elvis_core for Erlang project integration.

### 来源

- GitHub releases API: 0.1.1 published 2014-09-10 and 5.0.4 published 2026-05-29
- GitHub repository API: created_at 2014-06-23, language Erlang, topics, and repository metadata
- Homebrew formula API: stable version 5.0.4 and official source archive
- Official elvis README: commands, --config behavior, git-hook usage, and reference to elvis_core
- Official elvis_core README: configuration lookup and elvis.config example


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## 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: elvis.config
## 源数据库详情

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

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

- Nix - elvis: normalized package name match | nixpkgs package indexes: pkgs/by-name/el/elvis/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - elvis: normalized package name match | MacPorts ports tree: editors/elvis/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [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.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [erlang](https://pkg.so/zh-hans/brew/erlang/) - Runtime dependency declared by Homebrew.
- [rebar3](https://pkg.so/zh-hans/brew/rebar3/) - Build dependency declared by Homebrew.
- [eslint](https://pkg.so/zh-hans/brew/eslint/) - Shares pkgdb curated category or tags: cli, developer-tools, linter, static-analysis.
- [ktlint](https://pkg.so/zh-hans/brew/ktlint/) - Shares pkgdb curated category or tags: cli, developer-tools, linter, static-analysis.
- [pylint](https://pkg.so/zh-hans/brew/pylint/) - Shares pkgdb curated category or tags: cli, developer-tools, linter, static-analysis.
- [kube-linter](https://pkg.so/zh-hans/brew/kube-linter/) - Shares pkgdb curated category or tags: cli, developer-tools, linter, static-analysis.
- [pmd](https://pkg.so/zh-hans/brew/pmd/) - Shares pkgdb curated category or tags: cli, developer-tools, linter, static-analysis.
- [luacheck](https://pkg.so/zh-hans/brew/luacheck/) - Shares pkgdb curated category or tags: cli, developer-tools, linter, static-analysis.
- [selene](https://pkg.so/zh-hans/brew/selene/) - Shares pkgdb curated category or tags: cli, developer-tools, linter, static-analysis.
- [revive](https://pkg.so/zh-hans/brew/revive/) - Shares pkgdb curated category or tags: cli, developer-tools, linter, static-analysis.
- [dscanner](https://pkg.so/zh-hans/brew/dscanner/) - Local package facts share a topical domain. Shared terms: analysis, cli, developer, developer-tools, linter.
- [errcheck](https://pkg.so/zh-hans/brew/errcheck/) - Local package facts share a topical domain. Shared terms: analysis, cli, developer, developer-tools, linter.
- [eslint_d](https://pkg.so/zh-hans/brew/eslint-d/) - Local package facts share a topical domain. Shared terms: analysis, cli, developer, developer-tools, linter.

## Combined YAML source

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


## 来源

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