# 使用 Homebrew, Nix, pacman 安装 hawkeye

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

## 安装

```sh
sudo av install brew:hawkeye
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install hawkeye
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#hawkeye
```

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

- pacman (92%):

```sh
sudo pacman -S hawkeye
```

  证据: Arch Linux sync databases: hawkeye from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## 软件包事实

- **软件包键:** brew:hawkeye
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/hawkeye>
- **版本:** 6.5.1
- **来源摘要:** Simple license header checker and formatter, in multiple distribution forms
- **主页:** <https://github.com/korandoru/hawkeye>
- **仓库:** <https://github.com/korandoru/hawkeye>
- **上游文档:** <https://github.com/korandoru/hawkeye#readme>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/korandoru/hawkeye/archive/refs/tags/v6.5.1.tar.gz>
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- hawkeye (cli)
- hawkeye (别名)

## 构建依赖

- rust

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 6.5.1
- 本地数据: OK
- 上游仓库: https://github.com/korandoru/hawkeye
- 检测到的最新版本: v6.5.1 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

HawkEye is a Rust command-line tool and GitHub Action for checking, formatting, and removing license headers in source trees. Its package history is centered on supply-chain hygiene: it packages a repetitive repository-maintenance task as a local CLI, container image, prebuilt binary, Cargo install, and CI action.

### 项目历史

The public GitHub repository was created in January 2023 under the korandoru organization. The README describes the project as a simple license header checker and formatter, with a project-level licenserc.toml configuration file and commands for check, format, and remove workflows.

The project presents itself less as a general license scanner and more as a formatter for copyright/license header policy. Its native-image and prebuilt-binary distribution options fit teams that want fast CI checks without provisioning a full language toolchain.

### 采用历史

The README documents several distribution paths: a GitHub Action, a Docker image, Cargo installation, Arch Linux packaging, and prebuilt release installers. Homebrew, Nix, and pacman packaging in the input facts show adoption by Unix-oriented package ecosystems beyond the upstream release channel.

### 使用方式

Typical use is to add a licenserc.toml file at a repository root, run hawkeye check in CI, and use hawkeye format when files need an automatic header fix. The same executable can also remove headers, which makes it useful for migrations between license-header policies.

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

HawkEye matters to package-maintenance workflows because license headers are a common release-review nuisance: too small to deserve a bespoke framework, but common enough to fail CI and release audits. A single static-feeling CLI with GitHub Action support is the useful boring shape for that job.

### 时间线

- 2023: Public GitHub repository created.
- 2023: README-documented licenserc.toml workflow uses 2023 as the example inception year.
- 2020s: Distribution expands across Cargo, prebuilt binaries, Docker, GitHub Actions, and downstream package managers.

### Related projects

- Related tools include license scanners and formatters used in CI, but HawkEye's closest practical peers are repository policy tools that enforce source-header conventions rather than dependency-license inventories.

### 来源

- <https://api.github.com/repos/korandoru/hawkeye>
- <https://github.com/korandoru/hawkeye>
- <https://raw.githubusercontent.com/korandoru/hawkeye/main/README.md>


## 安全说明

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: ./licenserc.toml
- Windows: .\licenserc.toml
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** hawkeye
- **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

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

- Nix - hawkeye: normalized package name match | nixpkgs package indexes: pkgs/by-name/ha/hawkeye/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - hawkeye - 6.5.1-1: normalized package name match | Arch Linux sync databases: hawkeye from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Simple license header checker and formatter | https://github.com/korandoru/hawkeye


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [rust](https://www.automicvault.com/zh-hans/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [addlicense](https://www.automicvault.com/zh-hans/pkg/brew/addlicense/) - Shares av.db curated category or tags: cli, code-quality, developer-tools.
- [codelimit](https://www.automicvault.com/zh-hans/pkg/brew/codelimit/) - Shares av.db curated category or tags: cli, code-quality, developer-tools.
- [jscpd](https://www.automicvault.com/zh-hans/pkg/brew/jscpd/) - Shares av.db curated category or tags: cli, code-quality, developer-tools.
- [jslint4java](https://www.automicvault.com/zh-hans/pkg/brew/jslint4java/) - Shares av.db curated category or tags: cli, code-quality, developer-tools.
- [php-code-sniffer](https://www.automicvault.com/zh-hans/pkg/brew/php-code-sniffer/) - Shares av.db curated category or tags: cli, code-quality, developer-tools.
- [pint](https://www.automicvault.com/zh-hans/pkg/brew/pint/) - Shares av.db curated category or tags: cli, code-quality, developer-tools.
- [precious](https://www.automicvault.com/zh-hans/pkg/brew/precious/) - Shares av.db curated category or tags: cli, code-quality, developer-tools.
- [prek](https://www.automicvault.com/zh-hans/pkg/brew/prek/) - Shares av.db curated category or tags: cli, code-quality, developer-tools.
- [google-java-format](https://www.automicvault.com/zh-hans/pkg/brew/google-java-format/) - Local package facts share a topical domain. Shared terms: cli, code, code-formatting, code-quality, developer.

## Combined YAML source

View the package source record on GitHub. [combined/hawkeye.yml](https://github.com/automic-vault/db/blob/main/combined/hawkeye.yml)


## 来源

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