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

Last updated: September 28,2024

1. Install "php7.4" package

This guide covers the steps necessary to install php7.4 on Ubuntu 18.04 LTS (Bionic Beaver)

$ sudo apt update $ sudo apt install php7.4

2. Uninstall "php7.4" package

This is a short guide on how to uninstall php7.4 on Ubuntu 18.04 LTS (Bionic Beaver):

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

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

Package: php7.4
Priority: optional
Section: php
Installed-Size: 84
Maintainer: Debian PHP Maintainers
Architecture: all
Version: 1:7.4.30-5+ubuntu18.04.1+deb.sury.org+1
Provides: php
Depends: libapache2-mod-php7.4 | php7.4-fpm | php7.4-cgi, php7.4-common
Filename: pool/main/p/php7.4/php7.4_7.4.30-5+ubuntu18.04.1+deb.sury.org+1_all.deb
Size: 50204
MD5sum: 36d815a01bbcc08895224474ea086c0b
SHA1: 792abd0bcce6a22a4d9ed08ba75f4f96ac78d1ab
SHA256: d40e5d634257d697a5b70e5cc7a1b28831c44cb64f5d9d8a9b68596ac2a69cf0
Description: server-side, HTML-embedded scripting language (metapackage)
Description-md5: 86488d7a405bdcbac9ece7c307f30abb