How to Install and Uninstall php Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: December 23,2024

1. Install "php" package

Please follow the step by step instructions below to install php on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install php

2. Uninstall "php" package

Learn how to uninstall php on Ubuntu 16.04 LTS (Xenial Xerus):

$ sudo apt remove php $ sudo apt autoclean && sudo apt autoremove

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

Package: php
Architecture: all
Version: 1:7.0+35ubuntu6.1
Priority: optional
Section: php
Source: php-defaults (35ubuntu6.1)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 11
Depends: php7.0
Filename: pool/main/p/php-defaults/php_7.0+35ubuntu6.1_all.deb
Size: 2862
MD5sum: c5db88de62d1dcb9679e9ae328d7c94a
SHA1: 49d3f1d1850ac867fedf6fbc5635c33227dfde53
SHA256: 0b1ccf22b958163669e677d6f660888eec7951d6eda3ae0f49a8e3409773cd87
SHA512: f60d1a5e18bd2ba2a5a03970d1059dab203e95b4712e1b939ce8bc28a6f27c9c22b3a11119437eeebdb6d98b8efa1a96a3705f7601b92737e348ed6d2b9ab67c
Description-en: server-side, HTML-embedded scripting language (default)
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.
.
This package is a dependency package, which depends on Debian's default
PHP version (currently 7.0).
Description-md5: b955c03ceec2872c327e77278c943d6a
Supported: 5y

Package: php
Priority: optional
Section: php
Installed-Size: 11
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Architecture: all
Source: php-defaults (35ubuntu6)
Version: 1:7.0+35ubuntu6
Depends: php7.0
Filename: pool/main/p/php-defaults/php_7.0+35ubuntu6_all.deb
Size: 2832
MD5sum: 31c1cc09b02d168095e42ffe3557c580
SHA1: ae10f4c6426c05829d2afbe68e0fb750364ab3e3
SHA256: cd20ffd6877a367a86514a87082d3e979fec8922474f9246cdc398df0807eded
Description-en: server-side, HTML-embedded scripting language (default)
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.
.
This package is a dependency package, which depends on Debian's default
PHP version (currently 7.0).
Description-md5: b955c03ceec2872c327e77278c943d6a
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 5y