How to install replace2 on AlmaLinux, Rocky Linux, Oracle Linux and RHEL
The sane person's alternative to sed
Availability
| Distro | aarch64 | noarch | x86_64 | Version |
|---|---|---|---|---|
| RHEL 10 | ✓ | — | ✓ | 2.24 |
| RHEL 9 | ✓ | — | ✓ | 2.24 |
| RHEL 8 | ✓ | — | ✓ | 2.24 |
| RHEL 7 | ✓ | — | ✓ | 2.24 |
| RHEL 6 | — | — | ✓ | 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 AlmaLinux, Rocky Linux, Oracle Linux and RHEL.
Install
replace2 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 replace2
replace2 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 replace2
replace2 on CentOS / RHEL 6
sudo yum -y install https://extras.getpagespeed.com/release-latest.rpm sudo yum -y install replace2
Package downloads require an active GetPageSpeed subscription — one repository for replace2 and thousands more packages for AlmaLinux, Rocky Linux, Oracle Linux and RHEL.
Subscribe — from $10/moFrequently asked questions
How do I install replace2 on AlmaLinux, Rocky Linux, Oracle Linux and RHEL?
Add the GetPageSpeed repository, then install the replace2 package with your system package manager.
Which Enterprise Linux versions is replace2 available for?
replace2 is available for RHEL 6, 7, 8, 9, 10.