How to Install and Uninstall libapache2-mod-php8.2 Package on Debian 12 (Bookworm)

Last updated: May 20,2024

1. Install "libapache2-mod-php8.2" package

Please follow the guidance below to install libapache2-mod-php8.2 on Debian 12 (Bookworm)

$ sudo apt update $ sudo apt install libapache2-mod-php8.2

2. Uninstall "libapache2-mod-php8.2" package

Please follow the step by step instructions below to uninstall libapache2-mod-php8.2 on Debian 12 (Bookworm):

$ sudo apt remove libapache2-mod-php8.2 $ sudo apt autoclean && sudo apt autoremove

3. Information about the libapache2-mod-php8.2 package on Debian 12 (Bookworm)

Package: libapache2-mod-php8.2
Source: php8.2
Version: 8.2.16-1+0~20240216.40+debian12~1.gbp6cbea3
Architecture: amd64
Maintainer: Debian PHP Maintainers
Installed-Size: 5458
Depends: libmagic1, media-types | mime-support, php8.2-cli, php8.2-common (= 8.2.16-1+0~20240216.40+debian12~1.gbp6cbea3), php8.2-opcache, tzdata, ucf, apache2-api-20120211, apache2-bin (>= 2.4.16), libargon2-1 (>= 0~20171227), libc6 (>= 2.35), libpcre2-8-0 (>= 10.32), libsodium23 (>= 1.0.18), libssl3 (>= 3.0.0), libxml2 (>= 2.8.0), zlib1g (>= 1:1.1.4)
Recommends: apache2
Suggests: php-pear
Provides: libapache2-mod-php, php-json, php8.2-json, phpapi-20220829
Homepage: http://www.php.net/
Priority: optional
Section: httpd
Filename: pool/main/p/php8.2/libapache2-mod-php8.2_8.2.16-1+0~20240216.40+debian12~1.gbp6cbea3_amd64.deb
Size: 1674520
SHA256: e80065cf01f1c8bb51134fddebd46eedc442e97894b3564c261467396e0e93fc
SHA1: bccb177921723193308902470b2fbb044babd029
MD5sum: d0bea4e17ee157cfd12419f22cb7fd11
Description: server-side, HTML-embedded scripting language (Apache 2 module)
Description-md5: 6a338a642132f78b17e5228372062a40

Package: libapache2-mod-php8.2
Source: php8.2
Version: 8.2.7-1~deb12u1
Installed-Size: 5466
Maintainer: Debian PHP Maintainers
Architecture: amd64
Provides: libapache2-mod-php, php-json, php8.2-json, phpapi-20220829
Depends: libmagic1, media-types | mime-support, php8.2-cli, php8.2-common (= 8.2.7-1~deb12u1), php8.2-opcache, tzdata, ucf, apache2-api-20120211, apache2-bin (>= 2.4.16), libargon2-1 (>= 0~20171227), libc6 (>= 2.35), libpcre2-8-0 (>= 10.32), libsodium23 (>= 1.0.18), libssl3 (>= 3.0.0), libxml2 (>= 2.8.0), zlib1g (>= 1:1.1.4)
Recommends: apache2
Suggests: php-pear
Description: server-side, HTML-embedded scripting language (Apache 2 module)
Description-md5: 6a338a642132f78b17e5228372062a40
Homepage: http://www.php.net/
Tag: devel::interpreter, devel::runtime, implemented-in::c, role::plugin,
role::shared-lib, suite::apache, web::scripting
Section: httpd
Priority: optional
Filename: pool/main/p/php8.2/libapache2-mod-php8.2_8.2.7-1~deb12u1_amd64.deb
Size: 1673980
MD5sum: 1d9c4df83b43c344fb8bb583f328ec47
SHA256: 4d9a9eeccd64bdae7cdf6c5acea2d7bff999082778296f8c6cec643f350b85d4