# 使用 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
- **版本:** 6.5.1
- **来源摘要:** Simple license header checker and formatter, in multiple distribution forms
- **主页:** <https://github.com/korandoru/hawkeye>
- **仓库:** <https://github.com/korandoru/hawkeye>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- hawkeye (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 6.5.1
## 项目历史与用法

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
## 其他软件包管理器记录

- 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


## Combined YAML source

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