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

Last updated: December 28,2024

1. Install "php7.1" package

Please follow the guidelines below to install php7.1 on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install php7.1

2. Uninstall "php7.1" package

This is a short guide on how to uninstall php7.1 on Ubuntu 16.04 LTS (Xenial Xerus):

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

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

Package: php7.1
Priority: optional
Section: php
Installed-Size: 90
Maintainer: Debian PHP Maintainers
Architecture: all
Version: 7.1.33-37+ubuntu16.04.1+deb.sury.org+1
Provides: php
Depends: libapache2-mod-php7.1 | php7.1-fpm | php7.1-cgi, php7.1-common
Filename: pool/main/p/php7.1/php7.1_7.1.33-37+ubuntu16.04.1+deb.sury.org+1_all.deb
Size: 66226
MD5sum: 0b0d9a93a0d41380279eeaa2dd9f62eb
SHA1: fd4b89739fd1df64e100d47e0c274dc3546143bb
SHA256: 4cfe1e6f4049d72725677e5976805eef77288750bd21829c3e4109b60c7c70a6
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