How to Install and Uninstall php7.0 Package on Ubuntu 18.04 LTS (Bionic Beaver)

Last updated: June 26,2024

1. Install "php7.0" package

Please follow the instructions below to install php7.0 on Ubuntu 18.04 LTS (Bionic Beaver)

$ sudo apt update $ sudo apt install php7.0

2. Uninstall "php7.0" package

Please follow the step by step instructions below to uninstall php7.0 on Ubuntu 18.04 LTS (Bionic Beaver):

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

3. Information about the php7.0 package on Ubuntu 18.04 LTS (Bionic Beaver)

Package: php7.0
Priority: optional
Section: php
Installed-Size: 85
Maintainer: Debian PHP Maintainers
Architecture: all
Version: 7.0.33-61+ubuntu18.04.1+deb.sury.org+1
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-61+ubuntu18.04.1+deb.sury.org+1_all.deb
Size: 61416
MD5sum: 69d184020a3f8421776992214aaaac6f
SHA1: c1e5469616ae324c7f436eaefe9ffd8bb35f03c8
SHA256: 4f2ae554d985a746db111b8b22f43bc5b05a33ddeb0558f6b7de7164628df843
Description: server-side, HTML-embedded scripting language (metapackage)
Description-md5: 86488d7a405bdcbac9ece7c307f30abb