How to Install and Uninstall php Package on Debian 12 (Bookworm)

Last updated: November 26,2024

1. Install "php" package

Here is a brief guide to show you how to install php on Debian 12 (Bookworm)

$ sudo apt update $ sudo apt install php

2. Uninstall "php" package

This is a short guide on how to uninstall php on Debian 12 (Bookworm):

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

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

Package: php
Source: php-defaults (94+0~20240205.51+debian12~1.gbp6faa2e)
Version: 2:8.3+94+0~20240205.51+debian12~1.gbp6faa2e
Architecture: all
Maintainer: Debian PHP Maintainers
Installed-Size: 10
Depends: php8.3
Priority: optional
Section: php
Filename: pool/main/p/php-defaults/php_8.3+94+0~20240205.51+debian12~1.gbp6faa2e_all.deb
Size: 3836
SHA256: 092728b4eb9d490e801e15c3bff5e1f7d83e5d800a81d43efae3cc626b62cd12
SHA1: 12e3010dea85abe2d1ec71d859b0b77500b98d0b
MD5sum: e5b39a7665e9962522f9ea793cc8bcde
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.3).
Description-md5: 6d8fde392c2734b12a80e464fda054b4

Package: php
Source: php-defaults (93)
Version: 2:8.2+93
Installed-Size: 10
Maintainer: Debian PHP Maintainers
Architecture: all
Depends: php8.2
Description: server-side, HTML-embedded scripting language (default)
Description-md5: cf6b9bc7f5941aa2220d6d220e85135c
Section: php
Priority: optional
Filename: pool/main/p/php-defaults/php_8.2+93_all.deb
Size: 3628
MD5sum: f44a171e582055f5fdb390c88a77065a
SHA256: bed3564e74fbddb87d80c56f2b9b6f6be35b6519a80f1819257b2e3cdeb56057