How to Install and Uninstall php-cli Package on Ubuntu 21.10 (Impish Indri)

Last updated: May 19,2024

1. Install "php-cli" package

In this section, we are going to explain the necessary steps to install php-cli on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install php-cli

2. Uninstall "php-cli" package

This guide let you learn how to uninstall php-cli on Ubuntu 21.10 (Impish Indri):

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

3. Information about the php-cli package on Ubuntu 21.10 (Impish Indri)

Package: php-cli
Source: php-defaults (85+ubuntu21.10.1+deb.sury.org+1)
Priority: optional
Section: php
Installed-Size: 24
Maintainer: Debian PHP Maintainers
Architecture: all
Version: 2:8.0+85+ubuntu21.10.1+deb.sury.org+1
Depends: php8.0-cli
Filename: pool/main/p/php-defaults/php-cli_8.0+85+ubuntu21.10.1+deb.sury.org+1_all.deb
Size: 7412
MD5sum: f1a12bbf308eafd69769d5fd8563e4e9
SHA1: 9f57c4250483d4daa25967dfba2dcf2376066f4a
SHA256: 574649c0bba8029b16afa279e46ba4f4ef4f0fdebb55ee1b2fcc4431a9a5a1eb
Description-en: command-line interpreter for the PHP scripting language (default)
This package provides the /usr/bin/php command interpreter, useful for
testing PHP scripts from a shell or performing general shell scripting tasks.
.
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.0).
Description-md5: bb7b1a33ac430e28cff705c9d513ff62

Package: php-cli
Architecture: all
Version: 2:8.0+82~0build1
Priority: optional
Section: php
Source: php-defaults (82~0build1)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 24
Depends: php8.0-cli
Filename: pool/main/p/php-defaults/php-cli_8.0+82~0build1_all.deb
Size: 3380
MD5sum: 965579ae5ca9f697dc58b92141853922
SHA1: af365c91d49fbd1401a993b5c16fa77028f8a575
SHA256: 88b90e84f39376bdb996c1732c685a7c5f1bc5d6885f66123980c62325de05a1
SHA512: 468d239bdd6a6548615af75182f9606304c5916a44caa0c3d69a156a388ca8726cd6af55e4d3cfdb7394d3b2b30f89172615a6e219a4e100462209456ef54f73
Description-en: command-line interpreter for the PHP scripting language (default)
This package provides the /usr/bin/php command interpreter, useful for
testing PHP scripts from a shell or performing general shell scripting tasks.
.
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.0).
Description-md5: bb7b1a33ac430e28cff705c9d513ff62