Automic VaultAutomic Vault

brew

Install closure-compiler with Homebrew, apt

JavaScript optimizing compiler. Version 20260629 via Homebrew; verified 2026-07-01.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install closure-compiler

local Homebrew formula metadata

Linux

Debian aptverified · 92%
sudo apt install closure-compiler

Debian stable package indexes · closure-compiler · source: deb.debian.org

overview

Package summary

JavaScript optimizing compiler

Commands and aliases

  • closure-compiler

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

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

security posture

No protected-tool coverage found yet

No matching local secret-handling manifest was found for closure-compiler. Nucleus package metadata is still published here so future coverage has a stable package URL.

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 1 platform targets.
  • Installs with 1 runtime dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
closure-compilercliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version20260629
manager updated2026-07-01
local dataok
upstreamnot checked
latest detectednot detected

https://developers.google.com/closure/compiler

install metadata

Package metadata

Package keybrew:closure-compiler
Version20260629
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/closure-compiler
Homepagehttps://developers.google.com/closure/compiler
Repositoryhttps://github.com/google/closure-compiler
Upstream docshttps://developers.google.com/closure/compiler/docs/overview
LicenseApache-2.0
Source archivehttps://search.maven.org/remotecontent?filepath=com/google/javascript/closure-compiler/v20260629/closure-compiler-v20260629.jar
Last updated2026-07-01T00:07:44Z
Pulseupdated
Dependenciesopenjdk
Bottleavailable (on all)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameclosure-compiler
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

closure-compiler 20130227+rhino-2

JavaScript optimizing compiler

https://developers.google.com/closure/compiler/

sudo apt install closure-compiler
  • Section: java
  • Architecture: all
  • 4 dependencies
  • normalized package name match
  • Matched by: Closure Compiler
Debian stable package indexes · deb.debian.org · Debian stable package indexes: closure-compiler from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libclosure-compiler-java 20130227+rhino-2

JavaScript optimizing compiler - library package

https://developers.google.com/closure/compiler/

sudo apt install libclosure-compiler-java
  • Section: java
  • Architecture: all
  • Source Package: closure-compiler
  • 3 dependencies
  • 1 optional deps
  • normalized package name match
  • Matched by: Closure Compiler
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libclosure-compiler-java from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libclosure-compiler-java-doc 20130227+rhino-2

JavaScript optimizing compiler - Javadoc

https://developers.google.com/closure/compiler/

sudo apt install libclosure-compiler-java-doc
  • Section: doc
  • Architecture: all
  • Source Package: closure-compiler
  • 1 optional deps
  • normalized package name match
  • Matched by: Closure Compiler
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libclosure-compiler-java-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Ubuntu apt95%

closure-compiler 20130227+rhino-2

JavaScript optimizing compiler

https://developers.google.com/closure/compiler/

sudo apt install closure-compiler
  • Section: universe/java
  • Architecture: all
  • 4 dependencies
  • normalized package name match
  • Matched by: Closure Compiler
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: closure-compiler from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libclosure-compiler-java 20130227+rhino-2

JavaScript optimizing compiler - library package

https://developers.google.com/closure/compiler/

sudo apt install libclosure-compiler-java
  • Section: universe/java
  • Architecture: all
  • Source Package: closure-compiler
  • 3 dependencies
  • 1 optional deps
  • normalized package name match
  • Matched by: Closure Compiler
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libclosure-compiler-java from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libclosure-compiler-java-doc 20130227+rhino-2

JavaScript optimizing compiler - Javadoc

https://developers.google.com/closure/compiler/

sudo apt install libclosure-compiler-java-doc
  • Section: universe/doc
  • Architecture: all
  • Source Package: closure-compiler
  • 1 optional deps
  • normalized package name match
  • Matched by: Closure Compiler
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libclosure-compiler-java-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

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