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

Last updated: September 28,2024

1. Install "php7.4" package

This tutorial shows how to install php7.4 on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install php7.4

2. Uninstall "php7.4" package

Please follow the step by step instructions below to uninstall php7.4 on Ubuntu 16.04 LTS (Xenial Xerus):

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

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

Package: php7.4
Status: install ok installed
Priority: optional
Section: php
Installed-Size: 80
Maintainer: Debian PHP Maintainers
Architecture: all
Version: 7.4.18-2+ubuntu16.04.1+deb.sury.org+1
Provides: php
Depends: libapache2-mod-php7.4 | php7.4-fpm | php7.4-cgi, php7.4-common
Description: 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/