# 使用 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
- **版本:** 5.0.4
- **来源摘要:** Erlang Style Reviewer
- **主页:** <https://github.com/inaka/elvis>
- **仓库:** <https://github.com/inaka/elvis>
- **最后更新:** 2026-05-29T09:35:35Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- elvis (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 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
## 其他软件包管理器记录

- 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


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