How to Install and Uninstall php7.4 Package on Ubuntu 20.04 LTS (Focal Fossa)

Last updated: November 15,2024

1. Install "php7.4" package

Please follow the guidance below to install php7.4 on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install php7.4

2. Uninstall "php7.4" package

In this section, we are going to explain the necessary steps to uninstall php7.4 on Ubuntu 20.04 LTS (Focal Fossa):

$ sudo apt remove php7.4 $ sudo apt autoclean && sudo apt autoremove

3. Information about the php7.4 package on Ubuntu 20.04 LTS (Focal Fossa)

Package: php7.4
Priority: optional
Section: php
Installed-Size: 86
Maintainer: Debian PHP Maintainers
Architecture: all
Version: 1:7.4.33-8+ubuntu20.04.1+deb.sury.org+1
Provides: php
Depends: libapache2-mod-php7.4 | php7.4-fpm | php7.4-cgi, php7.4-common
Filename: pool/main/p/php7.4/php7.4_7.4.33-8+ubuntu20.04.1+deb.sury.org+1_all.deb
Size: 51676
MD5sum: 9d8b9e6c2454dabccda7014591eb5caf
SHA1: 3d182939f1955ce63b2589870eec659873b17b4a
SHA256: 3f3f611c53719494567648eeac51843d59802f0a99086bab112e2a0cd00363fa
Description: server-side, HTML-embedded scripting language (metapackage)
Description-md5: 86488d7a405bdcbac9ece7c307f30abb

Package: php7.4
Architecture: all
Version: 7.4.3-4ubuntu2.19
Priority: optional
Section: php
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 74
Provides: php
Depends: libapache2-mod-php7.4 | php7.4-fpm | php7.4-cgi, php7.4-common
Filename: pool/main/p/php7.4/php7.4_7.4.3-4ubuntu2.19_all.deb
Size: 9236
MD5sum: 6c61e80fea198f723a065665d7589c28
SHA1: d5f29f5dee9fc677f01f3f409f3a110c515b3226
SHA256: 85a5138e1b38eb69b11ada398604323826cdbd7c8cb2d991addeda0f1ef84998
SHA512: 22b77566bbe07952d80635b6178d986503eed02ae14238002bf864470fa0e931cb3ab63176989c33e2b4c3969a05d1cc012dfc68cf14dafb624574b3e5b191b5
Homepage: http://www.php.net/
Description: server-side, HTML-embedded scripting language (metapackage)
Description-md5: 86488d7a405bdcbac9ece7c307f30abb

Package: php7.4
Architecture: all
Version: 7.4.3-4ubuntu1
Priority: optional
Section: php
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 71
Provides: php
Depends: libapache2-mod-php7.4 | php7.4-fpm | php7.4-cgi, php7.4-common
Filename: pool/main/p/php7.4/php7.4_7.4.3-4ubuntu1_all.deb
Size: 9244
MD5sum: b3e60dee2c4e8598f1e564e638111796
SHA1: 9fd8ffefa3c15ad2ef45f92a81747c1a513ae3eb
SHA256: fb919d58a5fbe1efb33a5173fb28b6748c00c914f5a664852bdf6a813e0307e1
Homepage: http://www.php.net/
Description: server-side, HTML-embedded scripting language (metapackage)
Description-md5: 86488d7a405bdcbac9ece7c307f30abb