How to Install and Uninstall php7.2 Package on Debian 11 (Bullseye)

Last updated: November 26,2024

1. Install "php7.2" package

This guide let you learn how to install php7.2 on Debian 11 (Bullseye)

$ sudo apt update $ sudo apt install php7.2

2. Uninstall "php7.2" package

Please follow the guidelines below to uninstall php7.2 on Debian 11 (Bullseye):

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

3. Information about the php7.2 package on Debian 11 (Bullseye)

Package: php7.2
Version: 7.2.34-32+0~20220627.74+debian11~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+debian11~1.gbpc7fa3c_all.deb
Size: 56796
SHA256: db9bdc4860667be55f9844814dfb57b44c3643f57a165bf393990e7e4e4b8f44
SHA1: 3c4aa03f3150fab0cf6b052261915a5520fd7c69
MD5sum: 93ac76e30050fdf3f34d6a38d2cb3f3d
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