How to Install and Uninstall php-xml Package on Ubuntu 20.04 LTS (Focal Fossa)

Last updated: May 16,2024

1. Install "php-xml" package

This tutorial shows how to install php-xml on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install php-xml

2. Uninstall "php-xml" package

In this section, we are going to explain the necessary steps to uninstall php-xml on Ubuntu 20.04 LTS (Focal Fossa):

$ sudo apt remove php-xml $ sudo apt autoclean && sudo apt autoremove

3. Information about the php-xml package on Ubuntu 20.04 LTS (Focal Fossa)

Package: php-xml
Source: php-defaults (94+ubuntu20.04.1+deb.sury.org+2)
Priority: optional
Section: php
Installed-Size: 14
Maintainer: Debian PHP Maintainers
Architecture: all
Version: 2:8.3+94+ubuntu20.04.1+deb.sury.org+2
Depends: php-common, php8.3-xml
Filename: pool/main/p/php-defaults/php-xml_8.3+94+ubuntu20.04.1+deb.sury.org+2_all.deb
Size: 7360
MD5sum: e0aed16a2d8b1321b4b3bed7d9aa7c09
SHA1: 1beb2b78ed6981edec248c4f7f9fd66e333c8875
SHA256: c871a0da6007a42619fa0d237a8485e528d798a4b09a3dbcbe469e90fbdcda72
Description: DOM, SimpleXML, WDDX, XML, and XSL module for PHP [default]
Description-md5: 023253814b302d5b06fabecf6a50b635

Package: php-xml
Architecture: all
Version: 2:7.4+75
Priority: optional
Section: php
Source: php-defaults (75)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 13
Depends: php-common, php7.4-xml
Filename: pool/main/p/php-defaults/php-xml_7.4+75_all.deb
Size: 2028
MD5sum: e832269a4cc77a3ed1ef14630a8e407f
SHA1: e0bc1fe237cd300afa08654111c7f17b33f0f1a5
SHA256: 51b4fe477b57e0aa253b5aceccc0ed907270dfb73db39cca01cee68d9790d06a
Description: DOM, SimpleXML, WDDX, XML, and XSL module for PHP [default]
Description-md5: 9a67bbc76dab3ddc7ffd600fdd5c67a7