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

Last updated: November 22,2024

1. Install "php7.1" package

In this section, we are going to explain the necessary steps to install php7.1 on Debian 12 (Bookworm)

$ sudo apt update $ sudo apt install php7.1

2. Uninstall "php7.1" package

Learn how to uninstall php7.1 on Debian 12 (Bookworm):

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

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

Package: php7.1
Version: 7.1.33-56+0~20230904.88+debian12~1.gbp4cb5d3
Architecture: all
Maintainer: Debian PHP Maintainers
Installed-Size: 90
Depends: libapache2-mod-php7.1 | php7.1-fpm | php7.1-cgi, php7.1-common
Provides: php
Homepage: http://www.php.net/
Priority: optional
Section: php
Filename: pool/main/p/php7.1/php7.1_7.1.33-56+0~20230904.88+debian12~1.gbp4cb5d3_all.deb
Size: 65568
SHA256: 495c6b08c5cd332dcd164e95028b93acf3a8165e67101982f7db43d8676cb1d6
SHA1: 897fe7c96280f2760d01f2938cf4f94d44938833
MD5sum: e13c05a56b2335d578e538b7c7cbb10f
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