How to Install and Uninstall php8.2 Package on Ubuntu 20.04 LTS (Focal Fossa)

Last updated: November 23,2024

1. Install "php8.2" package

Please follow the guidance below to install php8.2 on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install php8.2

2. Uninstall "php8.2" package

This guide covers the steps necessary to uninstall php8.2 on Ubuntu 20.04 LTS (Focal Fossa):

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

3. Information about the php8.2 package on Ubuntu 20.04 LTS (Focal Fossa)

Package: php8.2
Priority: optional
Section: php
Installed-Size: 72
Maintainer: Debian PHP Maintainers
Architecture: all
Version: 8.2.15-1+ubuntu20.04.1+deb.sury.org+1
Provides: php
Depends: libapache2-mod-php8.2 | php8.2-fpm | php8.2-cgi, php8.2-common
Filename: pool/main/p/php8.2/php8.2_8.2.15-1+ubuntu20.04.1+deb.sury.org+1_all.deb
Size: 37812
MD5sum: 272aa9e8bd87e3b2e40e917150f2a65c
SHA1: 373a1e4878db10a8367a6c07276062aa47c4c221
SHA256: b4ccdee549ac50fe23a00bf7578d222cea74acb4bf8bb2e0959cce0503f54eb7
Description: server-side, HTML-embedded scripting language (metapackage)
Description-md5: 86488d7a405bdcbac9ece7c307f30abb