GetPageSpeed Extras

replace2

How to install replace2 on Amazon Linux

The sane person's alternative to sed

License: BSD https://replace.richardlloyd.org.uk/

Availability

Distro aarch64 noarch x86_64 Version
Amazon Linux 2023 2.24
Amazon Linux 2012.03 2.24
Amazon Linux 2 2.24

Description

The replace package, first released way back in 1994, provides a much easier way than sed of replacing one or more strings with others in one or more text or binary files or from standard input.

Built for Amazon Linux.

Install

replace2 on Amazon Linux 2, 2012.03, 2023

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

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

Subscribe — from $10/mo

Frequently asked questions

How do I install replace2 on Amazon Linux?

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

Which Amazon Linux versions is replace2 available for?

replace2 is available for Amazon Linux 2, 2012.03, 2023.

Subscribe