How to Install and Uninstall php8.0 Package on Debian 12 (Bookworm)

Last updated: May 16,2024

1. Install "php8.0" package

Please follow the steps below to install php8.0 on Debian 12 (Bookworm)

$ sudo apt update $ sudo apt install php8.0

2. Uninstall "php8.0" package

Please follow the guidance below to uninstall php8.0 on Debian 12 (Bookworm):

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

3. Information about the php8.0 package on Debian 12 (Bookworm)

Package: php8.0
Version: 1:8.0.30-2+0~20230904.59+debian12~1.gbp806e95
Architecture: all
Maintainer: Debian PHP Maintainers
Installed-Size: 67
Depends: libapache2-mod-php8.0 | php8.0-fpm | php8.0-cgi, php8.0-common
Provides: php
Homepage: http://www.php.net/
Priority: optional
Section: php
Filename: pool/main/p/php8.0/php8.0_8.0.30-2+0~20230904.59+debian12~1.gbp806e95_all.deb
Size: 33344
SHA256: 591f1f9f61d96136196da65f14e593a83e5aa44a0e3177bd8a099649e95d220d
SHA1: 53266ad7f245356cb68bc47335df04f20ab0183f
MD5sum: c21dd3d47bb09cb01a73d016c9983336
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