# Installer closure-compiler avec Homebrew, apt

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

## installation

```sh
sudo av install brew:closure-compiler
```

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install closure-compiler
```

  Preuve: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install closure-compiler
```

  Preuve: Debian stable package indexes: closure-compiler from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

## Faits du paquet

- **Clé du paquet:** brew:closure-compiler
- **Gestionnaire de paquets:** Homebrew
- **Page du gestionnaire de paquets:** <https://formulae.brew.sh/formula/closure-compiler>
- **Version:** 20260726
- **Résumé source:** JavaScript optimizing compiler
- **Page d'accueil:** <https://developers.google.com/closure/compiler>
- **Docs amont:** <https://developers.google.com/closure/compiler>
- **Licence:** Apache-2.0
- **Archive source:** <https://search.maven.org/remotecontent?filepath=com/google/javascript/closure-compiler/v20260726/closure-compiler-v20260726.jar>
- **Dernière mise à jour:** 2026-07-28T03:32:42Z
- **Généré:** 2026-08-04T22:13:35+00:00

## exécutables

- closure-compiler (cli)
- closure-compiler (alias)

## Dépendances

- openjdk

## Comportement d'installation

- hook post-installation: non défini
- Bouteille: disponible sur all

## Version et fraîcheur

- page générée: 2026-08-04
- version du gestionnaire: 20260726
- gestionnaire mis à jour: 2026-07-28
- données locales: OK
- dépôt amont: https://developers.google.com/closure/compiler
- info: Release/tag comparison is only available for GitHub repositories.
## Historique du projet et usages

Closure Compiler is Google's JavaScript checker and optimizer, descended from the Closure Tools release that made Google's internal large-scale JavaScript tooling available to external developers. Its package-manager story is unusual because the compiler is a Java project with Maven distribution, npm wrappers, and OS package formulas rather than a single canonical CLI channel.

### Historique du projet

Google introduced Closure Tools in 2009, including Closure Compiler, Closure Library, Closure Templates, and Closure Inspector. The compiler's role was to parse JavaScript, perform type and syntax checks, remove dead code, and rewrite code for smaller downloads and faster execution.

The current GitHub repository is maintained by Google and documents the compiler as a whole-program optimizer whose strongest mode, ADVANCED, expects code written with Closure Compiler's assumptions in mind. The README also records the project's long relationship with Closure Library style modules and its more limited fit with modern arbitrary JavaScript bundles.

### Historique d'adoption

Google's launch post tied Closure Tools to JavaScript-heavy products such as Gmail, Google Docs, and Google Maps, which made the compiler historically important as a public version of infrastructure used in large browser applications.

Distribution broadened beyond direct Java JAR usage: the upstream README points to Maven artifacts and notes npm/Yarn installation through the separate google-closure-compiler npm packaging maintained outside Google. The Homebrew, Debian, and Ubuntu package-manager facts in the input show that the CLI also became a conventional system package.

### Modes d'utilisation

Typical CLI use compiles one or more JavaScript inputs to an output file, with SIMPLE or ADVANCED optimization levels. The compiler can also check types and conformance, transpile newer JavaScript for older browsers, emit source maps, and split output into loadable chunks.

The project is best treated as a specialized optimizer for codebases prepared for its rules, especially when property renaming, externs, and Closure-style module conventions matter.

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

Closure Compiler matters to package nerds because it crosses packaging cultures: Java artifacts, npm command wrappers, Linux distro packages, and Homebrew all expose the same optimizer with different expectations about runtime, update cadence, and command names.

It is also a useful example of a package whose canonical upstream warns that one popular distribution path, npm, is built by an outside maintainer from a separate repository, so package provenance matters.

### Chronologie

- 2009: Google introduced Closure Tools and open sourced Closure Compiler.
- 2014: The current google/closure-compiler GitHub repository metadata was created.
- 2024: The README documented deprecation or reduced support for some non-ADVANCED and non-Closure-style module paths.

### Related projects

- Closure Library, Closure Templates, and Closure Inspector were announced with Closure Compiler as related Closure Tools.
- closure-compiler-npm is the separate npm packaging repository named by the upstream README.
- Modern JavaScript bundlers and minifiers overlap with Closure Compiler in SIMPLE-style minification, while Closure Compiler remains distinctive as a whole-program optimizer.

### Sources

- <https://developers.googleblog.com/introducing-closure-tools/>
- <https://developers.google.com/closure/compiler/docs/overview>
- <https://github.com/google/closure-compiler#readme>


## Notes de sécurité

Aucun manifest local de gestion des secrets correspondant n'a été trouvé pour closure-compiler. Les métadonnées de paquet restent publiées ici afin que la couverture future dispose d'une URL stable.


## Détails de la base source

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

## Autres enregistrements de gestionnaires de paquets

- Debian apt - closure-compiler - 20130227+rhino-2: normalized package name match | Debian stable package indexes: closure-compiler from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | JavaScript optimizing compiler | https://developers.google.com/closure/compiler/
- Debian apt - libclosure-compiler-java - 20130227+rhino-2: normalized package name match | Debian stable package indexes: libclosure-compiler-java from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | JavaScript optimizing compiler - library package | https://developers.google.com/closure/compiler/
- Debian apt - libclosure-compiler-java-doc - 20130227+rhino-2: normalized package name match | Debian stable package indexes: libclosure-compiler-java-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | JavaScript optimizing compiler - Javadoc | https://developers.google.com/closure/compiler/
- Ubuntu apt - closure-compiler - 20130227+rhino-2: normalized package name match | Ubuntu 24.04 LTS package indexes: closure-compiler from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | JavaScript optimizing compiler | https://developers.google.com/closure/compiler/
- Ubuntu apt - libclosure-compiler-java - 20130227+rhino-2: normalized package name match | Ubuntu 24.04 LTS package indexes: libclosure-compiler-java from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | JavaScript optimizing compiler - library package | https://developers.google.com/closure/compiler/
- Ubuntu apt - libclosure-compiler-java-doc - 20130227+rhino-2: normalized package name match | Ubuntu 24.04 LTS package indexes: libclosure-compiler-java-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | JavaScript optimizing compiler - Javadoc | https://developers.google.com/closure/compiler/


## Liens liés

- [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.
- [Language runtime packages](https://pkg.so/fr/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [openjdk](https://pkg.so/fr/brew/openjdk/) - Runtime dependency declared by Homebrew.
- [emscripten](https://pkg.so/fr/brew/emscripten/) - Shares pkgdb curated category or tags: cli, compiler, developer-tools, javascript.
- [binaryen](https://pkg.so/fr/brew/binaryen/) - Shares pkgdb curated category or tags: cli, compiler, developer-tools, optimizer.
- [node-sass](https://pkg.so/fr/brew/node-sass/) - Shares pkgdb curated category or tags: cli, compiler, developer-tools, javascript.
- [marked](https://pkg.so/fr/brew/marked/) - Shares pkgdb curated category or tags: cli, compiler, developer-tools, javascript.
- [babel](https://pkg.so/fr/brew/babel/) - Shares pkgdb curated category or tags: cli, compiler, developer-tools, javascript.
- [swc](https://pkg.so/fr/brew/swc/) - Shares pkgdb curated category or tags: cli, compiler, developer-tools, javascript.
- [ncc](https://pkg.so/fr/brew/ncc/) - Shares pkgdb curated category or tags: cli, compiler, developer-tools, javascript.
- [lunarml](https://pkg.so/fr/brew/lunarml/) - Shares pkgdb curated category or tags: cli, compiler, developer-tools, javascript.
- [google-closure-compiler](https://pkg.so/fr/npm/google-closure-compiler/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, closure, closure-compiler, compiler, developer.
- [gwt](https://pkg.so/fr/brew/gwt/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, compiler, developer, developer-tools, javascript.

## Combined YAML source

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