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

Last updated: May 20,2024

1. Install "php7.1-cli" package

In this section, we are going to explain the necessary steps to install php7.1-cli on Ubuntu 20.04 LTS (Focal Fossa)

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

2. Uninstall "php7.1-cli" package

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

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

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

Package: php7.1-cli
Source: php7.1
Priority: optional
Section: php
Installed-Size: 4637
Maintainer: Debian PHP Maintainers
Architecture: amd64
Version: 7.1.33-56+ubuntu20.04.1+deb.sury.org+1
Suggests: php-pear
Provides: php-cli, phpapi-20160303
Depends: libedit2 (>= 2.11-20080614-4), libmagic1, libpcre3 (>= 2:8.41), media-types | mime-support, php7.1-common (= 7.1.33-56+ubuntu20.04.1+deb.sury.org+1), php7.1-json, php7.1-opcache, php7.1-readline, tzdata, ucf, libc6 (>= 2.29), libssl1.1 (>= 1.1.0), libxml2 (>= 2.8.0), zlib1g (>= 1:1.1.4)
Filename: pool/main/p/php7.1/php7.1-cli_7.1.33-56+ubuntu20.04.1+deb.sury.org+1_amd64.deb
Size: 1368212
MD5sum: 8dc5ac258ea805425bc7147b604bf82c
SHA1: f2d38cc41e54d40cf2cd2291a87ede5aa9933ad1
SHA256: 2af9d4fd7e911c06049945677dc0287a2177239ade6adbde8bb46776b3100585
Description: command-line interpreter for the PHP scripting language
Description-md5: f2b967ba041836b6c91fe5a24786badb