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

Last updated: December 25,2024

1. Install "php8.1-cli" package

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

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

2. Uninstall "php8.1-cli" package

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

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

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

Package: php8.1-cli
Source: php8.1
Priority: optional
Section: php
Installed-Size: 5498
Maintainer: Debian PHP Maintainers
Architecture: amd64
Version: 8.1.27-1+ubuntu20.04.1+deb.sury.org+1
Suggests: php-pear
Provides: php-cli, php-json, php8.1-json, phpapi-20210902
Depends: libedit2 (>= 2.11-20080614-4), libmagic1, media-types | mime-support, php8.1-common (= 8.1.27-1+ubuntu20.04.1+deb.sury.org+1), php8.1-opcache, php8.1-readline, tzdata, ucf, libargon2-1 (>= 0~20171227), libc6 (>= 2.29), libpcre2-8-0 (>= 10.38), libsodium23 (>= 1.0.18), libssl1.1 (>= 1.1.1), libxml2 (>= 2.8.0), zlib1g (>= 1:1.1.4)
Filename: pool/main/p/php8.1/php8.1-cli_8.1.27-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb
Size: 1677192
MD5sum: e53f3352cbfa2532122af8f09a798fd8
SHA1: ad9a65c20b4e3aa6a6ab60e25cafa24920ce1791
SHA256: be155352c5246bbc7ec31099927573de918c319317f872b90758ba802f397608
Description: command-line interpreter for the PHP scripting language
Description-md5: c4f65cd0d3ec6a1fa6aba7e0fc095fa5