How to Install and Uninstall php Package on Ubuntu 21.10 (Impish Indri)

Last updated: May 20,2024

1. Install "php" package

Here is a brief guide to show you how to install php on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install php

2. Uninstall "php" package

Please follow the guidelines below to uninstall php on Ubuntu 21.10 (Impish Indri):

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

3. Information about the php package on Ubuntu 21.10 (Impish Indri)

Package: php
Source: php-defaults (85+ubuntu21.10.1+deb.sury.org+1)
Priority: optional
Section: php
Installed-Size: 13
Maintainer: Debian PHP Maintainers
Architecture: all
Version: 2:8.0+85+ubuntu21.10.1+deb.sury.org+1
Depends: php8.0
Filename: pool/main/p/php-defaults/php_8.0+85+ubuntu21.10.1+deb.sury.org+1_all.deb
Size: 6926
MD5sum: ed522775e6f03aee5e0cbcb2b7a3ef00
SHA1: bb35491b5cf89e9dab87f0c6b57cb5f011277d44
SHA256: 00f0678cbed6315536fb46ce5cb2a1d96efba7a73012b74711955c758663abd4
Description-en: 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.0).
Description-md5: 94067b9e058e6221c9da1fe44c187e54

Package: php
Architecture: all
Version: 2:8.0+82~0build1
Priority: optional
Section: php
Source: php-defaults (82~0build1)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 13
Depends: php8.0
Filename: pool/main/p/php-defaults/php_8.0+82~0build1_all.deb
Size: 2900
MD5sum: 07db7598a1d3930c605d527708733eb7
SHA1: 48300a50a9b9e951d53121057187f2a24ac8877a
SHA256: 170b916f8c9d4035b04a1133e7d0e3a14eb59281124c81d23c329a4d69209945
SHA512: 9e11c29f38a70670e456f4bbfe51260efffe18da3e9752fcb7d729b838e683d77a665648e27d6327368d583d9b5013b5add223ee8f5c8ab0133e3a317f048588
Description-en: 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.0).
Description-md5: 94067b9e058e6221c9da1fe44c187e54