How to Install and Uninstall php Package on Debian 11 (Bullseye)

Last updated: July 07,2024

1. Install "php" package

Learn how to install php on Debian 11 (Bullseye)

$ sudo apt update $ sudo apt install php

2. Uninstall "php" package

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

$ sudo apt remove php $ sudo apt autoclean && sudo apt autoremove

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

Package: php
Source: php-defaults (92+0~20220117.43+debian11~1.gbpe0d14e)
Version: 2:8.1+92+0~20220117.43+debian11~1.gbpe0d14e
Architecture: all
Maintainer: Debian PHP Maintainers
Installed-Size: 14
Depends: php8.1
Priority: optional
Section: php
Filename: pool/main/p/php-defaults/php_8.1+92+0~20220117.43+debian11~1.gbpe0d14e_all.deb
Size: 7404
SHA256: fbbb24a6f939da10184d4d105a517c302a7fd57f87659a15defa26ce143e3ccb
SHA1: b91b149a4cd25720578815fc129d5c9042b0b961
MD5sum: 68248a6b01dad7b4da645100d9e6ac7b
Description: server-side, HTML-embedded scripting language (default)
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.
.
This package is a dependency package, which depends on latest stable
PHP version (currently 8.1).
Description-md5: b9ba50eb1ebff6ec8fbf5a31cb3813c2

Package: php
Source: php-defaults (76)
Version: 2:7.4+76
Installed-Size: 13
Maintainer: Debian PHP Maintainers
Architecture: all
Depends: php7.4
Description: server-side, HTML-embedded scripting language (default)
Description-md5: 99c58fa41ae5c5908fd17241a53bfdd9
Section: php
Priority: optional
Filename: pool/main/p/php-defaults/php_7.4+76_all.deb
Size: 6340
MD5sum: 33859926f35bdfdc784d9e7312d16a92
SHA256: 10ca22712771dc343fb6600cbdbc88069069467fcc5c85782ee89abbc8c81f59