How to install zlib-ng on AlmaLinux, Rocky Linux & RHEL
Drop-in replacement of zlib with massive performance improvements
Availability
| Distro | aarch64 | noarch | x86_64 | Version |
|---|---|---|---|---|
| RHEL 10 | ✓ | — | ✓ | 2.3.3 |
| RHEL 9 | ✓ | — | ✓ | 2.3.3 |
| RHEL 8 | ✓ | — | ✓ | 2.3.3 |
| RHEL 7 | ✓ | — | ✓ | 2.3.3 |
| RHEL 6 | — | — | — |
Description
zlib-ng is a zlib replacement with optimizations for "next generation" systems. It is a drop-in replacement (ZLIB_COMPAT mode) for the standard zlib library, providing substantial performance improvements through SIMD acceleration (SSE2/SSSE3/SSE4/AVX2/AVX512 on x86_64; NEON on aarch64) and modern deflate/inflate strategies. This package installs into an isolated directory and uses ld.so.conf.d to take precedence over the system zlib at runtime, without replacing it on disk. Existing installs of the deprecated intel-zlib and cloudflare-zlib packages are obsoleted on upgrade.
Compatible with all RHEL-based distributions, including CentOS, AlmaLinux, Oracle Linux, Rocky Linux, etc.
Install
zlib-ng on AlmaLinux / Rocky Linux / Oracle Linux / RHEL 8, 9, 10
sudo dnf -y install https://extras.getpagespeed.com/release-latest.rpm sudo dnf -y install zlib-ng
zlib-ng 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 zlib-ng
Package downloads require an active GetPageSpeed subscription — one repository for zlib-ng and 3,000+ more packages across every maintained Enterprise Linux release.
Subscribe — from $10/moFrequently asked questions
How do I install zlib-ng on AlmaLinux, Rocky Linux or RHEL?
Add the GetPageSpeed repository, then run: sudo dnf -y install zlib-ng (use yum on EL7). The same package works on AlmaLinux, Rocky Linux, Oracle Linux, CentOS Stream and RHEL.
Which Enterprise Linux versions is zlib-ng available for?
zlib-ng is available for RHEL 7, 8, 9, 10 and the matching AlmaLinux, Rocky Linux and Oracle Linux releases.
Is zlib-ng 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.