How to Install and Uninstall php-cgi Package on Ubuntu 22.04 LTS (Jammy Jellyfish)

Last updated: April 30,2024

1. Install "php-cgi" package

This guide let you learn how to install php-cgi on Ubuntu 22.04 LTS (Jammy Jellyfish)

$ sudo apt update $ sudo apt install php-cgi

2. Uninstall "php-cgi" package

Please follow the steps below to uninstall php-cgi on Ubuntu 22.04 LTS (Jammy Jellyfish):

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

3. Information about the php-cgi package on Ubuntu 22.04 LTS (Jammy Jellyfish)

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

Package: php-cgi
Architecture: all
Version: 2:8.1+92ubuntu1
Priority: optional
Section: php
Source: php-defaults (92ubuntu1)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 24
Depends: php8.1-cgi
Filename: pool/main/p/php-defaults/php-cgi_8.1+92ubuntu1_all.deb
Size: 3280
MD5sum: 62f6b0a7960482840979395bf4f11c01
SHA1: dd263f9ece67d9f2a0fb73022ba3b2cd18cc0d33
SHA256: 61f2ec5a69c57e87055bc3179e440a8aacea9827eb503f8d9dfc5d9cbde53465
SHA512: 7b302cff86420bb43c49d16f74650c983db2e007da14401e6a294701dccc2fa31e1ff8ecaea0c418b2f0690409a2978dba6557acc1ddb122e7b206990a417030
Description: server-side, HTML-embedded scripting language (CGI binary) (default)
Description-md5: 121efaf3977d745652e2f21a65ca6271