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

Last updated: December 28,2024

1. Install "php7.0" package

This guide covers the steps necessary to install php7.0 on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install php7.0

2. Uninstall "php7.0" package

Please follow the instructions below to uninstall php7.0 on Ubuntu 20.04 LTS (Focal Fossa):

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

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

Package: php7.0
Priority: optional
Section: php
Installed-Size: 86
Maintainer: Debian PHP Maintainers
Architecture: all
Version: 7.0.33-68+ubuntu20.04.1+deb.sury.org+2
Provides: php
Depends: libapache2-mod-php7.0 | php7.0-fpm | php7.0-cgi, php7.0-common
Filename: pool/main/p/php7.0/php7.0_7.0.33-68+ubuntu20.04.1+deb.sury.org+2_all.deb
Size: 62452
MD5sum: 4343f2eeb845435f82d467578d9b2b20
SHA1: 778ced17733715817968e3ce43a82c476c6d5153
SHA256: 605e225e0d355a5449a35bd959291a7182e7a7561feaa350a50b23718b1a16c2
Description: server-side, HTML-embedded scripting language (metapackage)
Description-md5: 86488d7a405bdcbac9ece7c307f30abb