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

Last updated: May 19,2024

1. Install "php-cli" package

Please follow the guidelines below to install php-cli on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install php-cli

2. Uninstall "php-cli" package

This guide let you learn how to uninstall php-cli on Ubuntu 16.04 LTS (Xenial Xerus):

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

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

Package: php-cli
Architecture: all
Version: 1:7.0+35ubuntu6.1
Priority: optional
Section: php
Source: php-defaults (35ubuntu6.1)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 11
Depends: php7.0-cli
Filename: pool/main/p/php-defaults/php-cli_7.0+35ubuntu6.1_all.deb
Size: 2946
MD5sum: 122248328224b7748a3ab604e4bb730b
SHA1: b6c6f7af693b2c79edaec82ba7ee35ab430d533f
SHA256: bf3a8b5452d1f8aa7ac73e7871725f4a3245513da2b0382e85678232bd66f3a1
SHA512: 9fced7bb1cf230fc70f13a614eea09a46287f0af6c2f583da49bfd8213bc10820b4e90d3d8d06cf2746e2e514b37f808724c74b1dfb0aa3946cc99f631ed2635
Description-en: command-line interpreter for the PHP scripting language (default)
This package provides the /usr/bin/php command interpreter, useful for
testing PHP scripts from a shell or performing general shell scripting tasks.
.
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.
.
This package is a dependency package, which depends on Debian's default
PHP version (currently 7.0).
Description-md5: 566e36ddf36c48af1178c2f11883d22e
Supported: 5y

Package: php-cli
Priority: optional
Section: php
Installed-Size: 11
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Architecture: all
Source: php-defaults (35ubuntu6)
Version: 1:7.0+35ubuntu6
Depends: php7.0-cli
Filename: pool/main/p/php-defaults/php-cli_7.0+35ubuntu6_all.deb
Size: 2920
MD5sum: c01d4478fd2c122d043f949d4d9e30fb
SHA1: 0ebbd851f388fb60a943c26afeb4c7b94abcbd61
SHA256: 6ba45b12513c2430f244d4f3e88ef5dd0fe5721141bb55ce82575b5f2495b7de
Description-en: command-line interpreter for the PHP scripting language (default)
This package provides the /usr/bin/php command interpreter, useful for
testing PHP scripts from a shell or performing general shell scripting tasks.
.
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.
.
This package is a dependency package, which depends on Debian's default
PHP version (currently 7.0).
Description-md5: 566e36ddf36c48af1178c2f11883d22e
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 5y