How to Install and Uninstall php5.6 Package on Ubuntu 20.04 LTS (Focal Fossa)

Last updated: November 27,2024

1. Install "php5.6" package

Please follow the guidelines below to install php5.6 on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install php5.6

2. Uninstall "php5.6" package

Please follow the guidance below to uninstall php5.6 on Ubuntu 20.04 LTS (Focal Fossa):

$ sudo apt remove php5.6 $ sudo apt autoclean && sudo apt autoremove

3. Information about the php5.6 package on Ubuntu 20.04 LTS (Focal Fossa)

Package: php5.6
Priority: optional
Section: php
Installed-Size: 287
Maintainer: Debian PHP Maintainers
Architecture: all
Version: 5.6.40-68+ubuntu20.04.1+deb.sury.org+1
Provides: php
Depends: libapache2-mod-php5.6 | php5.6-fpm | php5.6-cgi, php5.6-common
Filename: pool/main/p/php5.6/php5.6_5.6.40-68+ubuntu20.04.1+deb.sury.org+1_all.deb
Size: 269380
MD5sum: 90efb4a959153c8fe9dc088fe7936f6d
SHA1: 813d51ffb97e620b16e28ceab8c61c555e43ed04
SHA256: cfcb6b8fc597857188891131491a739eb901dfd6106f65ee855b9edef3c4b875
Description: server-side, HTML-embedded scripting language (metapackage)
Description-md5: 86488d7a405bdcbac9ece7c307f30abb