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

Last updated: November 26,2024

1. Install "php8.1" package

Please follow the step by step instructions below to install php8.1 on Ubuntu 18.04 LTS (Bionic Beaver)

$ sudo apt update $ sudo apt install php8.1

2. Uninstall "php8.1" package

Learn how to uninstall php8.1 on Ubuntu 18.04 LTS (Bionic Beaver):

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

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

Package: php8.1
Priority: optional
Section: php
Installed-Size: 61
Maintainer: Debian PHP Maintainers
Architecture: all
Version: 8.1.9-1+ubuntu18.04.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.9-1+ubuntu18.04.1+deb.sury.org+1_all.deb
Size: 26900
MD5sum: 7e5ad2a9cf96110ad525b9b0a0c01abb
SHA1: c51349eebd4c917d4409dc4a903e8769ef813f37
SHA256: 5a01fc114f01404f305090b17e96d47245a746f523e1e9fb5b699302b4a1f67e
Description: server-side, HTML-embedded scripting language (metapackage)
Description-md5: 86488d7a405bdcbac9ece7c307f30abb