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

Last updated: May 20,2024

1. Install "php7.4" package

Please follow the guidelines below to install php7.4 on Debian 12 (Bookworm)

$ sudo apt update $ sudo apt install php7.4

2. Uninstall "php7.4" package

Please follow the instructions below to uninstall php7.4 on Debian 12 (Bookworm):

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

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

Package: php7.4
Version: 1:7.4.33-8+0~20230904.88+debian12~1.gbp87c414
Architecture: all
Maintainer: Debian PHP Maintainers
Installed-Size: 83
Depends: libapache2-mod-php7.4 | php7.4-fpm | php7.4-cgi, php7.4-common
Provides: php
Homepage: http://www.php.net/
Priority: optional
Section: php
Filename: pool/main/p/php7.4/php7.4_7.4.33-8+0~20230904.88+debian12~1.gbp87c414_all.deb
Size: 49084
SHA256: 119cfd2c8f84fede5ffdebec67c22337bd8b38324b6c73e62b62c96bfe3a3b57
SHA1: 1015ab19ae01db9f6f356cacdb7b28b6c022d77c
MD5sum: c63d6965bf67cd3f539ef81d430ab84b
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