How to install re2 on AlmaLinux, Rocky Linux, Oracle Linux and RHEL
C++ fast alternative to backtracking RE engines
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 | 20251105 | ||
| RHEL 9 | Base | 20211101 | ||
| RHEL 8 | Base | 20190801 | ||
| RHEL 7 | Base | 20160401 |
Description
RE2 is a fast, safe, thread-friendly alternative to backtracking regular expression engines like those used in PCRE, Perl, and Python. It is a C++ library.
Built for AlmaLinux, Rocky Linux, Oracle Linux and RHEL.
Install
Base
RHEL 7, 8, 9, 10
re2 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 re2
re2 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 re2
Package downloads require an active GetPageSpeed subscription — one repository for re2 and thousands more packages for AlmaLinux, Rocky Linux, Oracle Linux and RHEL.
Subscribe — from $10/moFrequently asked questions
How do I install re2 on AlmaLinux, Rocky Linux, Oracle Linux and RHEL?
Add the GetPageSpeed repository, then install the re2 package with your system package manager.
Which Enterprise Linux versions is re2 available for?
re2 is available for RHEL 7, 8, 9, 10.