How to Install and Uninstall php-cgi Package on Debian 10 (Buster)

Last updated: May 15,2024

1. Install "php-cgi" package

Learn how to install php-cgi on Debian 10 (Buster)

$ sudo apt update $ sudo apt install php-cgi

2. Uninstall "php-cgi" package

This guide let you learn how to uninstall php-cgi on Debian 10 (Buster):

$ sudo apt remove php-cgi $ sudo apt autoclean && sudo apt autoremove

3. Information about the php-cgi package on Debian 10 (Buster)

Package: php-cgi
Source: php-defaults (92+0~20220117.43+debian10~1.gbpe0d14e)
Version: 2:8.1+92+0~20220117.43+debian10~1.gbpe0d14e
Architecture: all
Maintainer: Debian PHP Maintainers
Installed-Size: 24
Depends: php8.1-cgi
Priority: optional
Section: php
Filename: pool/main/p/php-defaults/php-cgi_8.1+92+0~20220117.43+debian10~1.gbpe0d14e_all.deb
Size: 7896
SHA256: 600dd19b761773f67697c4991b8862b74c3f9ac0a2afb2e0bf3a3cad211a5444
SHA1: d451386eb33cc5dc05eb2ddaf0f27fa6a54c6136
MD5sum: 5addb5feb152c185ebdb690078138d5e
Description: server-side, HTML-embedded scripting language (CGI binary) (default)
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 php-fpm package that provide FastCGI support.
.
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.
.
This package is a dependency package, which depends on latest stable
PHP version (currently 8.1).
Description-md5: 121efaf3977d745652e2f21a65ca6271

Package: php-cgi
Source: php-defaults (69)
Version: 2:7.3+69
Installed-Size: 12
Maintainer: Debian PHP Maintainers
Architecture: all
Depends: php7.3-cgi
Description: server-side, HTML-embedded scripting language (CGI binary) (default)
Description-md5: 2ac7cc9c456140182e0195d35fe2b78a
Section: php
Priority: optional
Filename: pool/main/p/php-defaults/php-cgi_7.3+69_all.deb
Size: 6136
MD5sum: 13300a98a9962518eb7a3e853eb8926f
SHA256: e0f698212b7a4fc774a189d7442f817967fbe92f1482ad4432f2c91ab53b814b