How to Install and Uninstall php-xml Package on Ubuntu 18.04 LTS (Bionic Beaver)

Last updated: November 26,2024

1. Install "php-xml" package

This is a short guide on how to install php-xml on Ubuntu 18.04 LTS (Bionic Beaver)

$ sudo apt update $ sudo apt install php-xml

2. Uninstall "php-xml" package

Please follow the steps below to uninstall php-xml on Ubuntu 18.04 LTS (Bionic Beaver):

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

3. Information about the php-xml package on Ubuntu 18.04 LTS (Bionic Beaver)

Package: php-xml
Source: php-defaults (92+ubuntu18.04.1+deb.sury.org+2)
Priority: optional
Section: php
Installed-Size: 14
Maintainer: Debian PHP Maintainers
Architecture: all
Version: 2:8.1+92+ubuntu18.04.1+deb.sury.org+2
Depends: php-common, php8.1-xml
Filename: pool/main/p/php-defaults/php-xml_8.1+92+ubuntu18.04.1+deb.sury.org+2_all.deb
Size: 7304
MD5sum: 9eb2460a7b5de2d9f5f66f385908267c
SHA1: 71c6f3dc6432f3e7bac7fcd05eb61814cc970212
SHA256: 7abefd36a448d3de0145d6336c42a2e863612c564584921ff995e4d07236a23b
Description: DOM, SimpleXML, WDDX, XML, and XSL module for PHP [default]
Description-md5: f35c403c70090f9d81cf564b31565b28

Package: php-xml
Architecture: all
Version: 1:7.2+60ubuntu1
Priority: optional
Section: universe/php
Source: php-defaults (60ubuntu1)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 12
Depends: php-common, php7.2-xml
Filename: pool/universe/p/php-defaults/php-xml_7.2+60ubuntu1_all.deb
Size: 2024
MD5sum: da60c8fedcfcae6849cc46337a26120c
SHA1: 5577cf5b47bd7c2aa2be2ccb61b6de88066b1c45
SHA256: 670ae6c0372505b6ceacfed259869c19632561f22a7538349685c886ff865dc2
Description: DOM, SimpleXML, WDDX, XML, and XSL module for PHP [default]
Description-md5: cb4871d128cebb101130539206d23095