# addlicense を Homebrew, Nix でインストール

addlicense のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:addlicense
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install addlicense
```

  証拠: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#addlicense
```

  証拠: nixpkgs package indexes: pkgs/by-name/ad/addlicense/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## パッケージ情報

- **パッケージキー:** brew:addlicense
- **パッケージマネージャ:** Homebrew
- **バージョン:** 1.2.0
- **ソース概要:** Scan directories recursively to ensure source files have license headers
- **ホームページ:** <https://github.com/google/addlicense>
- **リポジトリ:** <https://github.com/google/addlicense>
- **最終更新:** 2026-07-25T14:18:25-04:00
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- addlicense (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 1.2.0
## プロジェクトの歴史と使われ方

addlicense is a Google-maintained Go command that recursively scans source trees and adds or checks copyright license headers. It is deliberately simple: run it over patterns, choose a supported license template or file, and optionally fail CI with -check.

### プロジェクトの歴史

The official GitHub repository was created in June 2016. Its README describes a Go program that modifies source files in place, avoids duplicating headers that already exist, and supports Apache, BSD, MIT, and MPL-style headers plus custom license files.

The project is hosted under the google organization but explicitly says it is not an official Google product. The official tag list shows stable v1.x tags, and the README now documents Go installation, a GitHub Container Registry image, and pre-commit integration.

### 採用の歴史

addlicense fits the common open-source maintenance workflow where license headers are enforced in presubmit, CI, or pre-commit rather than by hand. The supplied package-manager metadata shows Homebrew and Nix packaging, while the README documents go install, Docker, and an official pre-commit hook.

### 使われ方

Typical use is addlicense . or addlicense with multiple file and directory patterns. Important package-maintainer flags include -check for verification-only runs, -ignore for vendored or generated files, -l for the license family, -f for custom text, -s for SPDX identifiers, and -c/-y for copyright holder and year.

### パッケージ好きにとっての重要性

For package and release engineers, addlicense is a boring tool in the best sense: it makes source-header policy reproducible and automatable. It is useful in repos where license conformance needs to be enforced before vendoring, releasing, or importing code into downstream packaging.

### タイムライン

- 2016-06: GitHub repository created.
- v1.0.0: First stable tag appears in the official tag list.
- Current README: Go install, container, and pre-commit workflows are documented.

### Related projects

- pre-commit is documented as an official hook consumer.
- doublestar is referenced by the README for ignore-pattern semantics.

### ソース

- <https://api.github.com/repos/google/addlicense>
- <https://api.github.com/repos/google/addlicense/tags?per_page=100>
- <https://github.com/google/addlicense#readme>
- source_facts.package-manager


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals

## 他のパッケージマネージャ記録

- Nix - addlicense: normalized package name match | nixpkgs package indexes: pkgs/by-name/ad/addlicense/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

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


## ソース

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
