# Installer addlicense avec Homebrew, Nix

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de addlicense pour les workflows d'agents IA.

## installation

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

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install addlicense
```

  Preuve: local Homebrew formula metadata

### Linux

- Nix (92%):

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

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

## Faits du paquet

- **Clé du paquet:** brew:addlicense
- **Gestionnaire de paquets:** Homebrew
- **Page du gestionnaire de paquets:** <https://formulae.brew.sh/formula/addlicense>
- **Version:** 1.2.0
- **Résumé source:** Scan directories recursively to ensure source files have license headers
- **Page d'accueil:** <https://github.com/google/addlicense>
- **Dépôt:** <https://github.com/google/addlicense>
- **Licence:** Apache-2.0
- **Archive source:** <https://github.com/google/addlicense/archive/refs/tags/v1.2.0.tar.gz>
- **Dernière mise à jour:** 2026-07-25T14:18:25-04:00
- **Généré:** 2026-08-04T22:13:35+00:00

## exécutables

- addlicense (cli)
- addlicense (alias)

## Dépendances de compilation

- go

## Comportement d'installation

- hook post-installation: non défini
- Bouteille: disponible sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## Version et fraîcheur

- page générée: 2026-08-04
- version du gestionnaire: 1.2.0
- gestionnaire mis à jour: 2026-07-25
- données locales: OK
- dépôt amont: https://github.com/google/addlicense
- dernière version détectée: v1.2.0 (à jour)
## Historique du projet et usages

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.

### Historique du projet

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.

### Historique d'adoption

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.

### Modes d'utilisation

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.

### Pourquoi les passionnés de paquets s'y intéressent

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.

### Chronologie

- 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.

### Sources

- <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


## Notes de sécurité

narrow executable package without higher-risk signals.

- **Risque Geiger:** vert / faible
- narrow executable package without higher-risk signals

## Détails de la base source

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

## Autres enregistrements de gestionnaires de paquets

- 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


## Liens liés

- [Source-control packages](https://pkg.so/fr/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/fr/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/fr/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/fr/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [go](https://pkg.so/fr/brew/go/) - Build dependency declared by Homebrew.
- [fzf](https://pkg.so/fr/brew/fzf/) - Shares pkgdb curated category or tags: cli, developer-tools, go.
- [hugo](https://pkg.so/fr/brew/hugo/) - Shares pkgdb curated category or tags: cli, developer-tools, go.
- [golangci-lint](https://pkg.so/fr/brew/golangci-lint/) - Shares pkgdb curated category or tags: cli, developer-tools, go.
- [doxygen](https://pkg.so/fr/brew/doxygen/) - Shares pkgdb curated category or tags: cli, developer-tools, source-code.
- [k6](https://pkg.so/fr/brew/k6/) - Shares pkgdb curated category or tags: cli, developer-tools, go.
- [shfmt](https://pkg.so/fr/brew/shfmt/) - Shares pkgdb curated category or tags: cli, developer-tools, go.
- [typos-cli](https://pkg.so/fr/brew/typos-cli/) - Shares pkgdb curated category or tags: cli, developer-tools, source-code.
- [cloc](https://pkg.so/fr/brew/cloc/) - Shares pkgdb curated category or tags: cli, developer-tools, source-code.
- [reorder-python-imports](https://pkg.so/fr/brew/reorder-python-imports/) - Local package facts share a topical domain. Shared terms: cli, code, commit, developer, developer-tools.
- [djhtml](https://pkg.so/fr/brew/djhtml/) - Local package facts share a topical domain. Shared terms: cli, code, commit, developer, developer-tools.
- [gersemi](https://pkg.so/fr/brew/gersemi/) - Local package facts share a topical domain. Shared terms: cli, code, commit, developer, developer-tools.

## Combined YAML source

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


## Sources

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