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

Last updated: July 05,2024

1. Install "php7.2-cli" package

This guide let you learn how to install php7.2-cli on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install php7.2-cli

2. Uninstall "php7.2-cli" package

Please follow the guidelines below to uninstall php7.2-cli on Ubuntu 20.04 LTS (Focal Fossa):

$ sudo apt remove php7.2-cli $ sudo apt autoclean && sudo apt autoremove

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

Package: php7.2-cli
Source: php7.2
Priority: optional
Section: php
Installed-Size: 4987
Maintainer: Debian PHP Maintainers
Architecture: amd64
Version: 7.2.34-43+ubuntu20.04.1+deb.sury.org+1
Suggests: php-pear
Provides: php-cli, phpapi-20170718
Depends: libedit2 (>= 2.11-20080614-4), libmagic1, libpcre3 (>= 2:8.41), media-types | mime-support, php7.2-common (= 7.2.34-43+ubuntu20.04.1+deb.sury.org+1), php7.2-json, php7.2-opcache, php7.2-readline, tzdata, ucf, libargon2-1 (>= 0~20171227), libc6 (>= 2.29), libsodium23 (>= 1.0.14), libssl1.1 (>= 1.1.0), libxml2 (>= 2.8.0), zlib1g (>= 1:1.1.4)
Filename: pool/main/p/php7.2/php7.2-cli_7.2.34-43+ubuntu20.04.1+deb.sury.org+1_amd64.deb
Size: 1438044
MD5sum: bd937bfebca5ed0ed91240afff613468
SHA1: 2c67542538682e0a433e000d1dcedba33184053e
SHA256: 8ecf3ddddb05e2fb53866617cde29e4697f9ba931bd622a02aaddc708c6bcdaf
Description: command-line interpreter for the PHP scripting language
Description-md5: a7d0565e0b51caaecc1b552461abc0a6