GetPageSpeed Extras

closure-compiler

How to install closure-compiler on AlmaLinux, Rocky Linux & RHEL

Closure Compiler - JavaScript compressor

License: Apache License http://closure-compiler.appspot.com/

Availability

Distro aarch64 noarch x86_64 Version
RHEL 10
RHEL 9
RHEL 8
RHEL 7 20190301
RHEL 6

Description

The Closure Compiler is a tool for making JavaScript download and run faster. It is a true compiler for JavaScript. Instead of compiling from a source language to machine code, it compiles from JavaScript to better JavaScript. It parses your JavaScript, analyzes it, removes dead code and rewrites and minimizes what's left. It also checks syntax, variable references, and types, and warns about common JavaScript pitfalls.

Compatible with all RHEL-based distributions, including CentOS, AlmaLinux, Oracle Linux, Rocky Linux, etc.

Install

closure-compiler on CentOS 7 / RHEL 7

sudo yum -y install https://extras.getpagespeed.com/release-latest.rpm
sudo yum -y install https://epel.cloud/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum -y install closure-compiler

Package downloads require an active GetPageSpeed subscription — one repository for closure-compiler and 3,000+ more packages across every maintained Enterprise Linux release.

Subscribe — from $10/mo

Frequently asked questions

How do I install closure-compiler on AlmaLinux, Rocky Linux or RHEL?

Add the GetPageSpeed repository, then run: sudo dnf -y install closure-compiler (use yum on EL7). The same package works on AlmaLinux, Rocky Linux, Oracle Linux, CentOS Stream and RHEL.

Which Enterprise Linux versions is closure-compiler available for?

closure-compiler is available for RHEL 7 and the matching AlmaLinux, Rocky Linux and Oracle Linux releases.

Is closure-compiler compatible with Rocky Linux, Oracle Linux and CentOS Stream?

Yes. The RPM is built for Enterprise Linux and is binary-compatible across all RHEL rebuilds of the same major version, including AlmaLinux, Rocky Linux, Oracle Linux and CentOS Stream.

Subscribe