How to Install and Uninstall php8.1 Package on Ubuntu 21.10 (Impish Indri)

Last updated: May 20,2024

1. Install "php8.1" package

This tutorial shows how to install php8.1 on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install php8.1

2. Uninstall "php8.1" package

Learn how to uninstall php8.1 on Ubuntu 21.10 (Impish Indri):

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

3. Information about the php8.1 package on Ubuntu 21.10 (Impish Indri)

Package: php8.1
Priority: optional
Section: php
Installed-Size: 56
Maintainer: Debian PHP Maintainers
Architecture: all
Version: 8.1.0-1+ubuntu21.10.1+deb.sury.org+1
Provides: php
Depends: libapache2-mod-php8.1 | php8.1-fpm | php8.1-cgi, php8.1-common
Filename: pool/main/p/php8.1/php8.1_8.1.0-1+ubuntu21.10.1+deb.sury.org+1_all.deb
Size: 22298
MD5sum: 7ed08710bb9d62436149d13af92a8de2
SHA1: 7365ea51e677df0f2f708a2c708e1e84c63852e5
SHA256: 9980999dc5f07e741fc951e74ead3d291ed1525ac0482b3278e71ad21e42252a
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