How to Install and Uninstall php8.1 Package on Debian 11 (Bullseye)

Last updated: June 29,2024

1. Install "php8.1" package

This tutorial shows how to install php8.1 on Debian 11 (Bullseye)

$ sudo apt update $ sudo apt install php8.1

2. Uninstall "php8.1" package

Please follow the guidance below to uninstall php8.1 on Debian 11 (Bullseye):

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

3. Information about the php8.1 package on Debian 11 (Bullseye)

Package: php8.1
Version: 8.1.9-1+0~20220815.24+debian11~1.gbp4d5b5a
Architecture: all
Maintainer: Debian PHP Maintainers
Installed-Size: 62
Depends: libapache2-mod-php8.1 | php8.1-fpm | php8.1-cgi, php8.1-common
Provides: php
Homepage: http://www.php.net/
Priority: optional
Section: php
Filename: pool/main/p/php8.1/php8.1_8.1.9-1+0~20220815.24+debian11~1.gbp4d5b5a_all.deb
Size: 26944
SHA256: ae245d4015378995df1415f756caeaf227810ec906bf1274720d038ac6012f47
SHA1: dc9f0c28c7f2124ce476a5f0790610ec63d21f2d
MD5sum: e037f72243dd07127214ab39b0ff22ba
Description: 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