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

Last updated: May 19,2024

1. Install "php-cli" package

Please follow the step by step instructions below to install php-cli on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install php-cli

2. Uninstall "php-cli" package

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

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

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

Package: php-cli
Source: php-defaults (94+ubuntu20.04.1+deb.sury.org+2)
Priority: optional
Section: php
Installed-Size: 25
Maintainer: Debian PHP Maintainers
Architecture: all
Version: 2:8.3+94+ubuntu20.04.1+deb.sury.org+2
Depends: php8.3-cli
Filename: pool/main/p/php-defaults/php-cli_8.3+94+ubuntu20.04.1+deb.sury.org+2_all.deb
Size: 7764
MD5sum: 5a423016b43b5f2854c811ad25d082ab
SHA1: d795fff2a6f4edec056f105091e739cb3f494ab1
SHA256: 15572af93bb88d6089792470dd4cbd7b64a781e14fd44c085ea314135f38943c
Description: command-line interpreter for the PHP scripting language (default)
Description-md5: 4eafe3357c185a17703749eb4c986140

Package: php-cli
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-cli
Filename: pool/main/p/php-defaults/php-cli_7.4+75_all.deb
Size: 2792
MD5sum: 18873fffa99a91089bafe99dfb080c88
SHA1: c1946f04f762348814d2394846156a90e9a90781
SHA256: 64f9c8b1c79d8d093587719bf37962c6d5a1cea55b202a8261599832100c3525
Description: command-line interpreter for the PHP scripting language (default)
Description-md5: d7b82b840d6a7f5664fad95dad8ee870