How to install libxml2 on AlmaLinux, Rocky Linux, Oracle Linux and RHEL
Library providing XML and HTML support
Availability
| Distro | aarch64 | noarch | x86_64 | Version |
|---|---|---|---|---|
| RHEL 10 | — | — | — | |
| RHEL 9 | — | — | — | |
| RHEL 8 | — | — | — | |
| RHEL 7 | — | — | ✓ | 2.13.9 |
| RHEL 6 | — | — | — |
Description
libxml2 is an XML toolkit implementing XML, HTML, XPath, XPointer, XML Schema, Relax NG, and related standards. This maintained build preserves the libxml2.so.2 ABI required by EL7 applications while satisfying PHP 8.4.
Built for AlmaLinux, Rocky Linux, Oracle Linux and RHEL.
Install
libxml2 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 libxml2
Package downloads require an active GetPageSpeed subscription — one repository for libxml2 and thousands more packages for AlmaLinux, Rocky Linux, Oracle Linux and RHEL.
Subscribe — from $10/moFrequently asked questions
How do I install libxml2 on AlmaLinux, Rocky Linux, Oracle Linux and RHEL?
Add the GetPageSpeed repository, then install the libxml2 package with your system package manager.
Which Enterprise Linux versions is libxml2 available for?
libxml2 is available for RHEL 7.