How to Install and Uninstall php7.2 Package on Debian 12 (Bookworm)

Last updated: May 21,2024

1. Install "php7.2" package

This tutorial shows how to install php7.2 on Debian 12 (Bookworm)

$ sudo apt update $ sudo apt install php7.2

2. Uninstall "php7.2" package

Please follow the guidelines below to uninstall php7.2 on Debian 12 (Bookworm):

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

3. Information about the php7.2 package on Debian 12 (Bookworm)

Package: php7.2
Version: 7.2.34-43+0~20230902.90+debian12~1.gbpc2a431
Architecture: all
Maintainer: Debian PHP Maintainers
Installed-Size: 90
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-43+0~20230902.90+debian12~1.gbpc2a431_all.deb
Size: 56452
SHA256: 571763306030ed08a0e56ac26e09e1d5dd0198edf6c2f995de71c61a1c25fcfb
SHA1: 60525e24b3f40255cdc38398b26321b7048e1697
MD5sum: 68be43cf87c1a5dca54682157f5a38ae
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