How to Install and Uninstall php Package on Ubuntu 20.04 LTS (Focal Fossa)
Last updated: November 22,2024
1. Install "php" package
This is a short guide on how to install php on Ubuntu 20.04 LTS (Focal Fossa)
$
sudo apt update
Copied
$
sudo apt install
php
Copied
2. Uninstall "php" package
In this section, we are going to explain the necessary steps to uninstall php on Ubuntu 20.04 LTS (Focal Fossa):
$
sudo apt remove
php
Copied
$
sudo apt autoclean && sudo apt autoremove
Copied
3. Information about the php package on Ubuntu 20.04 LTS (Focal Fossa)
Package: php
Source: php-defaults (94+ubuntu20.04.1+deb.sury.org+2)
Priority: optional
Section: php
Installed-Size: 14
Maintainer: Debian PHP Maintainers
Architecture: all
Version: 2:8.3+94+ubuntu20.04.1+deb.sury.org+2
Depends: php8.3
Filename: pool/main/p/php-defaults/php_8.3+94+ubuntu20.04.1+deb.sury.org+2_all.deb
Size: 7316
MD5sum: 0765490944df84fd30b116a22bfd176a
SHA1: 11ed9a678e129cf0bf8ac53e480171e11b5b607c
SHA256: ee6772fbcc7fd608712ac1db9651aa98c2aa0510f3394bb72e7ca0862bdb6734
Description: server-side, HTML-embedded scripting language (default)
Description-md5: 6d8fde392c2734b12a80e464fda054b4
Package: php
Architecture: all
Version: 2:7.4+75
Priority: optional
Section: php
Source: php-defaults (75)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 13
Depends: php7.4
Filename: pool/main/p/php-defaults/php_7.4+75_all.deb
Size: 2712
MD5sum: 7ca5d4bcba640de5339d83a20a29761b
SHA1: 7a00635e7c99e1f7b4ee21ac276589f7bc028527
SHA256: 82c52f6820151da5a00e33bc8c0d00f5c33d771dccdd5fc54a9f5e0fdd0e4f57
Description: server-side, HTML-embedded scripting language (default)
Description-md5: 99c58fa41ae5c5908fd17241a53bfdd9
Source: php-defaults (94+ubuntu20.04.1+deb.sury.org+2)
Priority: optional
Section: php
Installed-Size: 14
Maintainer: Debian PHP Maintainers
Architecture: all
Version: 2:8.3+94+ubuntu20.04.1+deb.sury.org+2
Depends: php8.3
Filename: pool/main/p/php-defaults/php_8.3+94+ubuntu20.04.1+deb.sury.org+2_all.deb
Size: 7316
MD5sum: 0765490944df84fd30b116a22bfd176a
SHA1: 11ed9a678e129cf0bf8ac53e480171e11b5b607c
SHA256: ee6772fbcc7fd608712ac1db9651aa98c2aa0510f3394bb72e7ca0862bdb6734
Description: server-side, HTML-embedded scripting language (default)
Description-md5: 6d8fde392c2734b12a80e464fda054b4
Package: php
Architecture: all
Version: 2:7.4+75
Priority: optional
Section: php
Source: php-defaults (75)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 13
Depends: php7.4
Filename: pool/main/p/php-defaults/php_7.4+75_all.deb
Size: 2712
MD5sum: 7ca5d4bcba640de5339d83a20a29761b
SHA1: 7a00635e7c99e1f7b4ee21ac276589f7bc028527
SHA256: 82c52f6820151da5a00e33bc8c0d00f5c33d771dccdd5fc54a9f5e0fdd0e4f57
Description: server-side, HTML-embedded scripting language (default)
Description-md5: 99c58fa41ae5c5908fd17241a53bfdd9