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

Last updated: May 18,2024

1. Install "php-cli" package

Learn how to install php-cli on Ubuntu 18.04 LTS (Bionic Beaver)

$ sudo apt update $ sudo apt install php-cli

2. Uninstall "php-cli" package

This is a short guide on how to uninstall php-cli on Ubuntu 18.04 LTS (Bionic Beaver):

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

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

Package: php-cli
Source: php-defaults (92+ubuntu18.04.1+deb.sury.org+2)
Priority: optional
Section: php
Installed-Size: 25
Maintainer: Debian PHP Maintainers
Architecture: all
Version: 2:8.1+92+ubuntu18.04.1+deb.sury.org+2
Depends: php8.1-cli
Filename: pool/main/p/php-defaults/php-cli_8.1+92+ubuntu18.04.1+deb.sury.org+2_all.deb
Size: 7712
MD5sum: 7de631007d30c96f74e7f62ce65f4e18
SHA1: 291b06ce8a96c35dbac389ccfe3a76889c2fa068
SHA256: 8623b20cdf720d8938b6ed92551db696a4b2410e2ead02bf3e12903474c1f9ff
Description: command-line interpreter for the PHP scripting language (default)
Description-md5: 232467ad58970134c89120381a7f5586

Package: php-cli
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-cli
Filename: pool/main/p/php-defaults/php-cli_7.2+60ubuntu1_all.deb
Size: 3160
MD5sum: 45abb9432f4f7f95e5231b60d77b00d2
SHA1: b4e8f61a892a39025c6a0a50cd18b3a472d196b4
SHA256: 805b0a6f54807c63bb9dad50899c4e34a823c120b804f4f8175eeaeea82241af
Description: command-line interpreter for the PHP scripting language (default)
Description-md5: 5ec551cfb68472363a695a7a0243115b
Supported: 5y