How to install shc on AlmaLinux, Rocky Linux, Oracle Linux and RHEL
Shell script compiler
Availability
Compare package tracks by distribution and architecture. Checkmarks show the architectures available in each repository channel.
| Distro | Channel | aarch64 | x86_64 | Version |
|---|---|---|---|---|
| RHEL 10 | Base | 4.0.3 | ||
| RHEL 6 | Base | — | 4.0.3 |
Description
SHC is a generic shell script compiler. It takes a script, which is specified on the command line and produces C source code. The generated source code is then compiled and linked to produce a s- tripped binary.
Built for AlmaLinux, Rocky Linux, Oracle Linux and RHEL.
Install
Base
RHEL 6, 10
shc on AlmaLinux / Rocky Linux / Oracle Linux / RHEL 10
sudo dnf -y install https://extras.getpagespeed.com/release-latest.rpm sudo dnf -y install shc
shc on CentOS / RHEL 6
sudo yum -y install https://extras.getpagespeed.com/release-latest.rpm sudo yum -y install shc
Package downloads require an active GetPageSpeed subscription — one repository for shc and thousands more packages for AlmaLinux, Rocky Linux, Oracle Linux and RHEL.
Subscribe — from $10/moFrequently asked questions
How do I install shc on AlmaLinux, Rocky Linux, Oracle Linux and RHEL?
Add the GetPageSpeed repository, then install the shc package with your system package manager.
Which Enterprise Linux versions is shc available for?
shc is available for RHEL 6, 10.