How to Install and Uninstall php7.0 Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: November 23,2024

1. Install "php7.0" package

This is a short guide on how to install php7.0 on Ubuntu 16.04 LTS (Xenial Xerus)

$ 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 16.04 LTS (Xenial Xerus):

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

3. Information about the php7.0 package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: php7.0
Status: install ok installed
Priority: optional
Section: php
Installed-Size: 84
Maintainer: Debian PHP Maintainers
Architecture: all
Version: 7.0.33-50+ubuntu16.04.1+deb.sury.org+1
Provides: php
Depends: libapache2-mod-php7.0 | php7.0-fpm | php7.0-cgi, php7.0-common
Description-en: server-side, HTML-embedded scripting language (metapackage)
This package is a metapackage that, when installed, guarantees that you
have at least one of the four server-side versions of the PHP interpreter
installed. Removing this package won't remove PHP from your system, however
it may remove other packages that depend on this one.
.
PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used
open source general-purpose scripting language that is especially suited
for web development and can be embedded into HTML.
Description-md5: 86488d7a405bdcbac9ece7c307f30abb
Homepage: http://www.php.net/

Package: php7.0
Architecture: all
Version: 7.0.33-0ubuntu0.16.04.16
Priority: optional
Section: php
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 9
Provides: php
Depends: php7.0-fpm | libapache2-mod-php7.0 | php7.0-cgi, php7.0-common (= 7.0.33-0ubuntu0.16.04.16)
Conflicts: php5 (<< 5.6.16+dfsg-4~)
Filename: pool/main/p/php7.0/php7.0_7.0.33-0ubuntu0.16.04.16_all.deb
Size: 1300
MD5sum: 0e67662aaafc8b40be6bf644bd2b7b34
SHA1: fbc2b8bb07204fe26c9ad1c1df824207390a57ba
SHA256: db1c21cb6b5a735fc84a32bee5497cc137944b5adba6e4cb503fd95e68eda702
SHA512: 029ba15469c6e6e2b098ec527b8d000bee64402a0f71fb2bbe514b0f35aeeb6f719db4a1a8ceabc2b64cc9b23fa2c25ed7b8ab8aeeb7539a05f4c7a439ca6745
Homepage: http://www.php.net/
Description-en: server-side, HTML-embedded scripting language (metapackage)
This package is a metapackage that, when installed, guarantees that you
have at least one of the four server-side versions of the PHP interpreter
installed. Removing this package won't remove PHP from your system, however
it may remove other packages that depend on this one.
.
PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used
open source general-purpose scripting language that is especially suited
for web development and can be embedded into HTML.
Description-md5: 86488d7a405bdcbac9ece7c307f30abb
Supported: 5y

Package: php7.0
Priority: optional
Section: php
Installed-Size: 9
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Architecture: all
Version: 7.0.4-7ubuntu2
Provides: php
Depends: php7.0-fpm | libapache2-mod-php7.0 | php7.0-cgi, php7.0-common (= 7.0.4-7ubuntu2)
Conflicts: php5 (<< 5.6.16+dfsg-4~)
Filename: pool/main/p/php7.0/php7.0_7.0.4-7ubuntu2_all.deb
Size: 1298
MD5sum: bb156d4e90cc2b3dc395a843ceb0098c
SHA1: a90fa4279ff906c02962eca7eb5e9676f2ee1f8a
SHA256: c19b8b93fab947fef59e3c88f69694fa154bbc30c36238aac282a67cf209759c
Description-en: server-side, HTML-embedded scripting language (metapackage)
This package is a metapackage that, when installed, guarantees that you
have at least one of the four server-side versions of the PHP interpreter
installed. Removing this package won't remove PHP from your system, however
it may remove other packages that depend on this one.
.
PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used
open source general-purpose scripting language that is especially suited
for web development and can be embedded into HTML.
Description-md5: 86488d7a405bdcbac9ece7c307f30abb
Homepage: http://www.php.net/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 5y