How to Install and Uninstall php7.2 Package on Ubuntu 18.04 LTS (Bionic Beaver)

Last updated: November 23,2024

1. Install "php7.2" package

This guide let you learn how to install php7.2 on Ubuntu 18.04 LTS (Bionic Beaver)

$ sudo apt update $ sudo apt install php7.2

2. Uninstall "php7.2" package

Please follow the instructions below to uninstall php7.2 on Ubuntu 18.04 LTS (Bionic Beaver):

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

3. Information about the php7.2 package on Ubuntu 18.04 LTS (Bionic Beaver)

Package: php7.2
Priority: optional
Section: php
Installed-Size: 91
Maintainer: Debian PHP Maintainers
Architecture: all
Version: 7.2.34-33+ubuntu18.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-33+ubuntu18.04.1+deb.sury.org+1_all.deb
Size: 56784
MD5sum: ef3d16c580c3ba88b4199d1613765421
SHA1: 1a5b183c61f34eb031aa6297dd3141ff2715ccf5
SHA256: 5a09b0b0a730e48db3c219cb422781932a0bb8f5871c312a7a04106caf4e2b15
Description: server-side, HTML-embedded scripting language (metapackage)
Description-md5: 86488d7a405bdcbac9ece7c307f30abb

Package: php7.2
Architecture: all
Version: 7.2.24-0ubuntu0.18.04.13
Priority: optional
Section: php
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 89
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.24-0ubuntu0.18.04.13_all.deb
Size: 9244
MD5sum: 6562070c7dd84e9325b922823792c726
SHA1: 37feb04c3877efceada394750a6badc5f5cf1c51
SHA256: cfffbba83ba3fbf8718b4c89526a3dc0300fe4a4a08dba4836a2a656759893ae
SHA512: 50e5bb270a556b337c28cb5aeac769b2c5864b55fd614f0691a022d95b1af240adbb298844066ddd3acc023aa927f04914e4a8f8f8f4ac11f2d2a20f511370eb
Homepage: http://www.php.net/
Description: server-side, HTML-embedded scripting language (metapackage)
Description-md5: 86488d7a405bdcbac9ece7c307f30abb
Supported: 5y

Package: php7.2
Architecture: all
Version: 7.2.3-1ubuntu1
Priority: optional
Section: php
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 75
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.3-1ubuntu1_all.deb
Size: 9236
MD5sum: 9912bfd8c51f6530ff72caf552d822bd
SHA1: 6f2f81d315319618574d915a8fde67b3c8a006aa
SHA256: dce40fe47295e47bf89795ef48877c3f2415a9db9cc8df44b96dfacacbe33891
Homepage: http://www.php.net/
Description: server-side, HTML-embedded scripting language (metapackage)
Description-md5: 86488d7a405bdcbac9ece7c307f30abb
Supported: 5y