How to Install and Uninstall php5.6-cli Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: May 18,2024

1. Install "php5.6-cli" package

This is a short guide on how to install php5.6-cli on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install php5.6-cli

2. Uninstall "php5.6-cli" package

Please follow the guidelines below to uninstall php5.6-cli on Ubuntu 16.04 LTS (Xenial Xerus):

$ sudo apt remove php5.6-cli $ sudo apt autoclean && sudo apt autoremove

3. Information about the php5.6-cli package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: php5.6-cli
Source: php5.6
Priority: optional
Section: php
Installed-Size: 4441
Maintainer: Debian PHP Maintainers
Architecture: amd64
Version: 5.6.40-50+ubuntu16.04.1+deb.sury.org+1
Suggests: php-pear
Provides: php-cli, phpapi-20131226
Depends: libedit2 (>= 2.11-20080614-4), libmagic1, libpcre3 (>= 2:8.41), mime-support, php5.6-common (= 5.6.40-50+ubuntu16.04.1+deb.sury.org+1), php5.6-json, php5.6-opcache, php5.6-readline, tzdata, ucf, libc6 (>= 2.15), libssl1.1 (>= 1.1.0), libxml2 (>= 2.8.0), zlib1g (>= 1:1.1.4)
Filename: pool/main/p/php5.6/php5.6-cli_5.6.40-50+ubuntu16.04.1+deb.sury.org+1_amd64.deb
Size: 1287484
MD5sum: cda13253399944ef91350bf9f13fa298
SHA1: e809d9f9bfdbfc1efe0689ba26f8dc1e9f35dd9e
SHA256: f3540e2a31aa7d36bc36933af6a61d9bcaac3a410894df75783e4de0b924c202
Description-en: command-line interpreter for the PHP scripting language
This package provides the /usr/bin/php5.6 command interpreter, useful for
testing PHP scripts from a shell or performing general shell scripting tasks.
.
The following extensions are built in: Core date ereg filter hash libxml
mhash openssl pcntl pcre Reflection session SPL standard zlib.
.
PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used
open source general-purpose scripting language that is especially suited
for web development and can be embedded into HTML.
Description-md5: b39d6910cc77bfaab56bc9894172c543