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

Last updated: November 23,2024

1. Install "php7.1" package

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

$ 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 18.04 LTS (Bionic Beaver):

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

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

Package: php7.1
Priority: optional
Section: php
Installed-Size: 91
Maintainer: Debian PHP Maintainers
Architecture: all
Version: 7.1.33-48+ubuntu18.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-48+ubuntu18.04.1+deb.sury.org+1_all.deb
Size: 67508
MD5sum: 8562f08456a8338c6da1291180f78828
SHA1: 1e52be37771522a44a4bd6b3f11f2b70b6bf82fd
SHA256: 614d5ace3c674c918477d7a9a4d51c5c808b9527b37b7f6645b226de9011f5da
Description: server-side, HTML-embedded scripting language (metapackage)
Description-md5: 86488d7a405bdcbac9ece7c307f30abb