How to Install and Uninstall php7.4 Package on Ubuntu 21.10 (Impish Indri)

Last updated: November 15,2024

1. Install "php7.4" package

This guide let you learn how to install php7.4 on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install php7.4

2. Uninstall "php7.4" package

Please follow the steps below to uninstall php7.4 on Ubuntu 21.10 (Impish Indri):

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

3. Information about the php7.4 package on Ubuntu 21.10 (Impish Indri)

Package: php7.4
Priority: optional
Section: php
Installed-Size: 83
Maintainer: Debian PHP Maintainers
Architecture: all
Version: 7.4.26-1+ubuntu21.10.1+deb.sury.org+2
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.26-1+ubuntu21.10.1+deb.sury.org+2_all.deb
Size: 49514
MD5sum: 83fc6a7de804aeb62d8ba86650d3cc52
SHA1: dcae4c9d840a5f55bb260ad9069a7b551fefb81f
SHA256: 39b8dc4f754fec244d3dc1ca1b651ad79d0f7b29c6dd62398cb3d88d78d95f1a
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