How To Install php-xml on Rocky Linux 8

In this tutorial we learn how to install php-xml on Rocky Linux 8. php-xml is A module for PHP applications which use XML

Introduction

In this tutorial we learn how to install php-xml on Rocky Linux 8.

What is php-xml

The php-xml package contains dynamic shared objects which add support to PHP for manipulating XML documents using the DOM tree, and performing XSL transformations on XML documents.

We can use yum or dnf to install php-xml on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install php-xml.

Install php-xml on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install php-xml using dnf by running the following command:

sudo dnf -y install php-xml

Install php-xml on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install php-xml using yum by running the following command:

sudo yum -y install php-xml

How To Uninstall php-xml on Rocky Linux 8

To uninstall only the php-xml package we can use the following command:

sudo dnf remove php-xml

php-xml Package Contents on Rocky Linux 8

/etc/php.d/20-dom.ini
/etc/php.d/20-simplexml.ini
/etc/php.d/20-xml.ini
/etc/php.d/20-xmlwriter.ini
/etc/php.d/20-xsl.ini
/etc/php.d/30-wddx.ini
/etc/php.d/30-xmlreader.ini
/usr/lib/.build-id
/usr/lib/.build-id/06
/usr/lib/.build-id/06/8b35cc6fc51f07c4de916e4302aac4af0272c2
/usr/lib/.build-id/94
/usr/lib/.build-id/94/8bb5190905e5f10972237aa6ca0d44767e56eb
/usr/lib/.build-id/a9
/usr/lib/.build-id/a9/d53494d554a0741f42c654cdfa85f43a5fcfe4
/usr/lib/.build-id/ae
/usr/lib/.build-id/ae/894166fabeb34be368f0f5d331a5dd1feabde9
/usr/lib/.build-id/af
/usr/lib/.build-id/af/e14b47391165357e5bde8e9a154d826467cfbc
/usr/lib/.build-id/b2
/usr/lib/.build-id/b2/fd6772192ff3d83cc2327d58b6bfff104444b6
/usr/lib/.build-id/fb
/usr/lib/.build-id/fb/4ec40e07a3cfb9e71d64622fec06e56da89d23
/usr/lib64/php/modules/dom.so
/usr/lib64/php/modules/simplexml.so
/usr/lib64/php/modules/wddx.so
/usr/lib64/php/modules/xml.so
/usr/lib64/php/modules/xmlreader.so
/usr/lib64/php/modules/xmlwriter.so
/usr/lib64/php/modules/xsl.so

References

Summary

In this tutorial we learn how to install php-xml on Rocky Linux 8 using yum and dnf.