How to Install and Uninstall php-cgi Package on Ubuntu 18.04 LTS (Bionic Beaver)

Last updated: July 05,2024

1. Install "php-cgi" package

Please follow the step by step instructions below to install php-cgi on Ubuntu 18.04 LTS (Bionic Beaver)

$ sudo apt update $ sudo apt install php-cgi

2. Uninstall "php-cgi" package

This tutorial shows how to uninstall php-cgi on Ubuntu 18.04 LTS (Bionic Beaver):

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

3. Information about the php-cgi package on Ubuntu 18.04 LTS (Bionic Beaver)

Package: php-cgi
Source: php-defaults (92+ubuntu18.04.1+deb.sury.org+2)
Priority: optional
Section: php
Installed-Size: 24
Maintainer: Debian PHP Maintainers
Architecture: all
Version: 2:8.1+92+ubuntu18.04.1+deb.sury.org+2
Depends: php8.1-cgi
Filename: pool/main/p/php-defaults/php-cgi_8.1+92+ubuntu18.04.1+deb.sury.org+2_all.deb
Size: 7768
MD5sum: 66b062946b7cfa2c3d83e566473e485c
SHA1: d99ed2f72fec61e0c88cb862dbdf3d96640e5f2d
SHA256: c1ad1ecf547d22c7a7fccbce43238935912a08237cd6f7cc34197988e010b3d4
Description: server-side, HTML-embedded scripting language (CGI binary) (default)
Description-md5: 121efaf3977d745652e2f21a65ca6271

Package: php-cgi
Architecture: all
Version: 1:7.2+60ubuntu1
Priority: optional
Section: php
Source: php-defaults (60ubuntu1)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 12
Depends: php7.2-cgi
Filename: pool/main/p/php-defaults/php-cgi_7.2+60ubuntu1_all.deb
Size: 3256
MD5sum: 4ce9462502f6e9b57a04d7c9e39062f7
SHA1: 9f355ae00d661077305dc9d6855bd306d8ed35d1
SHA256: 36625881c6abf467b174abd10fd9ed30b6721d21d6216c14e7295b8712fa1126
Description: server-side, HTML-embedded scripting language (CGI binary) (default)
Description-md5: 2896d0e833ec91cf8bbfac334e11a400
Supported: 5y