How to Install and Uninstall php-cgi Package on Ubuntu 20.04 LTS (Focal Fossa)

Last updated: July 18,2024

1. Install "php-cgi" package

Learn how to install php-cgi on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install php-cgi

2. Uninstall "php-cgi" package

Please follow the guidelines below to uninstall php-cgi on Ubuntu 20.04 LTS (Focal Fossa):

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

3. Information about the php-cgi package on Ubuntu 20.04 LTS (Focal Fossa)

Package: php-cgi
Source: php-defaults (94+ubuntu20.04.1+deb.sury.org+2)
Priority: optional
Section: php
Installed-Size: 24
Maintainer: Debian PHP Maintainers
Architecture: all
Version: 2:8.3+94+ubuntu20.04.1+deb.sury.org+2
Depends: php8.3-cgi
Filename: pool/main/p/php-defaults/php-cgi_8.3+94+ubuntu20.04.1+deb.sury.org+2_all.deb
Size: 7824
MD5sum: 4b40fae7dddba9a3f4730ea1e3a01f59
SHA1: e6988e5ea6f88a1d3fcb32c4307eda9526026430
SHA256: 41314d7ad7301ba7776dd68427f765b767390e85d7defe73abfc634ebc5eca36
Description: server-side, HTML-embedded scripting language (CGI binary) (default)
Description-md5: c2d411a125412ad9e227c7490c3ea2cc

Package: php-cgi
Architecture: all
Version: 2:7.4+75
Priority: optional
Section: php
Source: php-defaults (75)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 13
Depends: php7.4-cgi
Filename: pool/main/p/php-defaults/php-cgi_7.4+75_all.deb
Size: 2876
MD5sum: 94099308552640fb9dceb1c29ec7c154
SHA1: cb237a6312c9c03522a17093c23c68061211a7bc
SHA256: 395bb540b30cd4100e6d36ad9319055ce8d6384a6f5dcd7bfa5b20515428624b
Description: server-side, HTML-embedded scripting language (CGI binary) (default)
Description-md5: bf8b9c574e9458f532f43e1417178ca4