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

Last updated: November 26,2024

1. Install "php7.4" package

Learn how to install php7.4 on Debian 11 (Bullseye)

$ sudo apt update $ sudo apt install php7.4

2. Uninstall "php7.4" package

Here is a brief guide to show you how to uninstall php7.4 on Debian 11 (Bullseye):

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

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

Package: php7.4
Version: 1:7.4.30-3+0~20220627.69+debian11~1.gbpf2b381
Architecture: all
Maintainer: Debian PHP Maintainers
Installed-Size: 84
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.30-3+0~20220627.69+debian11~1.gbpf2b381_all.deb
Size: 50180
SHA256: 7615fbfd3e7da3bdf2b570c5831d07f55785c371aa5c30708d933467425f49fe
SHA1: 9f306f40a3fd7f3e1c35552dd180453942bd60f8
MD5sum: 2f553c6c570ee543bf7636dbb0895afc
Description: server-side, HTML-embedded scripting language (metapackage)
Description-md5: 86488d7a405bdcbac9ece7c307f30abb

Package: php7.4
Version: 7.4.30-1+deb11u1
Installed-Size: 83
Maintainer: Debian PHP Maintainers
Architecture: all
Provides: php
Depends: libapache2-mod-php7.4 | php7.4-fpm | php7.4-cgi, php7.4-common
Description: server-side, HTML-embedded scripting language (metapackage)
Description-md5: 86488d7a405bdcbac9ece7c307f30abb
Homepage: http://www.php.net/
Section: php
Priority: optional
Filename: pool/updates/main/p/php7.4/php7.4_7.4.30-1+deb11u1_all.deb
Size: 49776
SHA256: f9151b1ed6d2124d394e48938e06b716fe5da1cd31df2ca7bb0a10940409a229

Package: php7.4
Version: 7.4.28-1+deb11u1
Installed-Size: 83
Maintainer: Debian PHP Maintainers
Architecture: all
Provides: php
Depends: libapache2-mod-php7.4 | php7.4-fpm | php7.4-cgi, php7.4-common
Description: server-side, HTML-embedded scripting language (metapackage)
Description-md5: 86488d7a405bdcbac9ece7c307f30abb
Homepage: http://www.php.net/
Section: php
Priority: optional
Filename: pool/main/p/php7.4/php7.4_7.4.28-1+deb11u1_all.deb
Size: 49488
MD5sum: 8956d639f13d41586dc262e3bbc10acb
SHA256: fa0313e7f57d773dce677b2d641267147ab01dfe78a77a69ffb1fb7291cefe96