How to Install and Uninstall php7.2 Package on Debian 10 (Buster)

Last updated: May 10,2024

1. Install "php7.2" package

Please follow the guidance below to install php7.2 on Debian 10 (Buster)

$ sudo apt update $ sudo apt install php7.2

2. Uninstall "php7.2" package

Please follow the guidance below to uninstall php7.2 on Debian 10 (Buster):

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

3. Information about the php7.2 package on Debian 10 (Buster)

Package: php7.2
Version: 7.2.34-32+0~20220627.74+debian10~1.gbpc7fa3c
Architecture: all
Maintainer: Debian PHP Maintainers
Installed-Size: 91
Depends: libapache2-mod-php7.2 | php7.2-fpm | php7.2-cgi, php7.2-common
Provides: php
Homepage: http://www.php.net/
Priority: optional
Section: php
Filename: pool/main/p/php7.2/php7.2_7.2.34-32+0~20220627.74+debian10~1.gbpc7fa3c_all.deb
Size: 56776
SHA256: 9f4903a4cf80b574b1b50e8e8c7cd3d3867d84dc41b6cb120121598606052c95
SHA1: 9be64c1c9bd2948e1ff3bb6309c47e28ed83cc42
MD5sum: b129b5b0023534a97cf229c250af2263
Description: server-side, HTML-embedded scripting language (metapackage)
This package is a metapackage that, when installed, guarantees that you
have at least one of the four server-side versions of the PHP interpreter
installed. Removing this package won't remove PHP from your system, however
it may remove other packages that depend on this one.
.
PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used
open source general-purpose scripting language that is especially suited
for web development and can be embedded into HTML.
Description-md5: 86488d7a405bdcbac9ece7c307f30abb