View this package for all CentOS/RHEL versions →
How to install libxml2 in CentOS/RHEL 7 (x86_64)
Library providing XML and HTML support
Install
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
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.
Compatibility
This package is compatible with all RHEL-based distributions, including CentOS, AlmaLinux, Oracle Linux, Rocky Linux, etc.
RPMs
| Package | Size | Built | Changes |
|---|---|---|---|
| libxml2-2.13.9-1.el7.gps1.x86_64 | 665 KiB | 2026-08-13 |
Danila Vershinin - Add an EL7-compatible libxml2.so.2 update for PHP 8.4 |