How to Install and Uninstall php7.2-cgi Package on Debian 12 (Bookworm)

Last updated: May 19,2024

1. Install "php7.2-cgi" package

In this section, we are going to explain the necessary steps to install php7.2-cgi on Debian 12 (Bookworm)

$ sudo apt update $ sudo apt install php7.2-cgi

2. Uninstall "php7.2-cgi" package

This tutorial shows how to uninstall php7.2-cgi on Debian 12 (Bookworm):

$ sudo apt remove php7.2-cgi $ sudo apt autoclean && sudo apt autoremove

3. Information about the php7.2-cgi package on Debian 12 (Bookworm)

Package: php7.2-cgi
Source: php7.2
Version: 7.2.34-43+0~20230902.90+debian12~1.gbpc2a431
Architecture: amd64
Maintainer: Debian PHP Maintainers
Installed-Size: 9537
Depends: libmagic1, libpcre3 (>= 2:8.41), media-types | mime-support, php7.2-cli, php7.2-common (= 7.2.34-43+0~20230902.90+debian12~1.gbpc2a431), php7.2-json, php7.2-opcache, tzdata, ucf, libargon2-1 (>= 0~20171227), libc6 (>= 2.35), libsodium23 (>= 1.0.14), libssl3 (>= 3.0.0), libxml2 (>= 2.8.0), zlib1g (>= 1:1.1.4)
Suggests: php-pear
Provides: php-cgi, phpapi-20170718
Homepage: http://www.php.net/
Priority: optional
Section: php
Filename: pool/main/p/php7.2/php7.2-cgi_7.2.34-43+0~20230902.90+debian12~1.gbpc2a431_amd64.deb
Size: 1407608
SHA256: acc2cca27f6a9749286121b9cfc7ea48bb8b801fba920bda68ae0d943ba472eb
SHA1: e04c4eb3297fa02e7c63c07af3fd896df2b26e89
MD5sum: fb002cc6c5c25600de10790bd341bc48
Description: server-side, HTML-embedded scripting language (CGI binary)
This package provides the /usr/lib/cgi-bin/php CGI interpreter built
for use in Apache 2 with mod_actions, or any other CGI httpd that
supports a similar mechanism. Note that MOST users probably
want the php7.2-fpm package.
.
The following extensions are built in: Core date filter hash libxml openssl
pcntl pcre Reflection session sodium SPL standard zlib.
.
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: 97125b602be5fad16ac2438eb8339454