How to Install and Uninstall php Package on Debian 10 (Buster)

Last updated: May 14,2024

1. Install "php" package

In this section, we are going to explain the necessary steps to install php on Debian 10 (Buster)

$ sudo apt update $ sudo apt install php

2. Uninstall "php" package

This is a short guide on how to uninstall php on Debian 10 (Buster):

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

3. Information about the php package on Debian 10 (Buster)

Package: php
Source: php-defaults (92+0~20220117.43+debian10~1.gbpe0d14e)
Version: 2:8.1+92+0~20220117.43+debian10~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+debian10~1.gbpe0d14e_all.deb
Size: 7392
SHA256: 558bf99fadba5fe73251bd78e205aca2f8163f7f0f68679ff9c400b7cc9ac127
SHA1: 88dbfd6bade092b638c1c3a6ff0ddbf780832a5f
MD5sum: 2522729acb34437107a136c8a1f32116
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 (69)
Version: 2:7.3+69
Installed-Size: 12
Maintainer: Debian PHP Maintainers
Architecture: all
Depends: php7.3
Description: server-side, HTML-embedded scripting language (default)
Description-md5: 8877e9f08f3b7f9ce8d66848cbb639e7
Section: php
Priority: optional
Filename: pool/main/p/php-defaults/php_7.3+69_all.deb
Size: 5964
MD5sum: c4a7abb123cb816fc2a7a546e6700e90
SHA256: 0fbe0870fccbbcab2c5f6489af12167189d87db0d399295812e784f376151daa