How to Install and Uninstall php7.2 Package on Ubuntu 20.04 LTS (Focal Fossa)

Last updated: November 23,2024

1. Install "php7.2" package

This is a short guide on how to install php7.2 on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install php7.2

2. Uninstall "php7.2" package

Please follow the guidelines below to uninstall php7.2 on Ubuntu 20.04 LTS (Focal Fossa):

$ sudo apt remove php7.2 $ sudo apt autoclean && sudo apt autoremove

3. Information about the php7.2 package on Ubuntu 20.04 LTS (Focal Fossa)

Package: php7.2
Priority: optional
Section: php
Installed-Size: 92
Maintainer: Debian PHP Maintainers
Architecture: all
Version: 7.2.34-43+ubuntu20.04.1+deb.sury.org+1
Provides: php
Depends: libapache2-mod-php7.2 | php7.2-fpm | php7.2-cgi, php7.2-common
Filename: pool/main/p/php7.2/php7.2_7.2.34-43+ubuntu20.04.1+deb.sury.org+1_all.deb
Size: 58208
MD5sum: 35e89c20527ac8aa8ca4cc338f715c7d
SHA1: ad9a51a9623703b334c1b593fe3b0dac9a07f0ae
SHA256: 83215653f99aa18daf88fcbc36a029ecb05c524d9ebe530b1679f9dc8eb2c900
Description: server-side, HTML-embedded scripting language (metapackage)
Description-md5: 86488d7a405bdcbac9ece7c307f30abb