How to Install and Uninstall php8.1-cgi Package on Ubuntu 21.10 (Impish Indri)

Last updated: September 28,2024

1. Install "php8.1-cgi" package

Please follow the step by step instructions below to install php8.1-cgi on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install php8.1-cgi

2. Uninstall "php8.1-cgi" package

This tutorial shows how to uninstall php8.1-cgi on Ubuntu 21.10 (Impish Indri):

$ sudo apt remove php8.1-cgi $ sudo apt autoclean && sudo apt autoremove

3. Information about the php8.1-cgi package on Ubuntu 21.10 (Impish Indri)

Package: php8.1-cgi
Source: php8.1
Priority: optional
Section: php
Installed-Size: 10563
Maintainer: Debian PHP Maintainers
Architecture: amd64
Version: 8.1.0-1+ubuntu21.10.1+deb.sury.org+1
Suggests: php-pear
Provides: php-cgi, php8.1-json, phpapi-20210902
Depends: libmagic1, mime-support, php8.1-cli, php8.1-common (= 8.1.0-1+ubuntu21.10.1+deb.sury.org+1), php8.1-opcache, tzdata, ucf, libargon2-1 (>= 0~20171227), libc6 (>= 2.34), libpcre2-8-0 (>= 10.38), libsodium23 (>= 1.0.18), libssl1.1 (>= 1.1.1), libxml2 (>= 2.8.0), zlib1g (>= 1:1.1.4)
Filename: pool/main/p/php8.1/php8.1-cgi_8.1.0-1+ubuntu21.10.1+deb.sury.org+1_amd64.deb
Size: 1781126
MD5sum: afbf20bb39a71e7449e01f31df37166d
SHA1: a2c62f098ced86cc59cb850218884e69ddcf7379
SHA256: d9dca28e323ab23445124d276f0e6ffa4c8b37d005d3b06862450aea83988c2f
Description-en: 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 php8.1-fpm package.
.
The following extensions are built in: Core date filter hash json 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: d56129a9453d4b8230f1c2dfa0da00a7