GetPageSpeed Extras

closure-compiler

How to install closure-compiler on AlmaLinux, Rocky Linux, Oracle Linux and 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.

Built for AlmaLinux, Rocky Linux, Oracle Linux and RHEL.

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 thousands more packages for AlmaLinux, Rocky Linux, Oracle Linux and RHEL.

Subscribe — from $10/mo

Frequently asked questions

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

Add the GetPageSpeed repository, then install the closure-compiler package with your system package manager.

Which Enterprise Linux versions is closure-compiler available for?

closure-compiler is available for RHEL 7.

Subscribe