How to install re2 on Amazon Linux

C++ fast alternative to backtracking RE engines

License: BSD Vendor: Fedora Project http://github.com/google/re2/

Availability

Compare package tracks by distribution and architecture. Checkmarks show the architectures available in each repository channel.

Distro Channel aarch64 Version
Amazon Linux 2 Base 20160401

Description

RE2 is a C++ library providing a fast, safe, thread-friendly alternative to backtracking regular expression engines like those used in PCRE, Perl, and Python. Backtracking engines are typically full of features and convenient syntactic sugar but can be forced into taking exponential amounts of time on even small inputs. In contrast, RE2 uses automata theory to guarantee that regular expression searches run in time linear in the size of the input, at the expense of some missing features (e.g back references and generalized assertions).

Built for Amazon Linux.

Install

Base Amazon Linux 2

re2 on Amazon Linux 2

sudo dnf -y install https://extras.getpagespeed.com/release-latest.rpm
sudo dnf -y install re2

Package downloads require an active GetPageSpeed subscription — one repository for re2 and thousands more packages for Amazon Linux.

Subscribe — from $10/mo

Frequently asked questions

How do I install re2 on Amazon Linux?

Add the GetPageSpeed repository, then install the re2 package with your system package manager.

Which Amazon Linux versions is re2 available for?

re2 is available for Amazon Linux 2.

Subscribe