How to Install and Uninstall php Package on Ubuntu 18.04 LTS (Bionic Beaver)
Last updated: December 23,2024
1. Install "php" package
Please follow the guidelines below to install php on Ubuntu 18.04 LTS (Bionic Beaver)
$
sudo apt update
Copied
$
sudo apt install
php
Copied
2. Uninstall "php" package
This tutorial shows how to uninstall php on Ubuntu 18.04 LTS (Bionic Beaver):
$
sudo apt remove
php
Copied
$
sudo apt autoclean && sudo apt autoremove
Copied
3. Information about the php package on Ubuntu 18.04 LTS (Bionic Beaver)
Package: php
Source: php-defaults (92+ubuntu18.04.1+deb.sury.org+2)
Priority: optional
Section: php
Installed-Size: 14
Maintainer: Debian PHP Maintainers
Architecture: all
Version: 2:8.1+92+ubuntu18.04.1+deb.sury.org+2
Depends: php8.1
Filename: pool/main/p/php-defaults/php_8.1+92+ubuntu18.04.1+deb.sury.org+2_all.deb
Size: 7264
MD5sum: 136e8b9c067e76471cc1873822398a2a
SHA1: 527e8c13b7ffc85af5c8e19026a8714754d35638
SHA256: 1e61e51516aee618a046310a27f543eab2ee656722a3998babe9f1041f53056e
Description: server-side, HTML-embedded scripting language (default)
Description-md5: b9ba50eb1ebff6ec8fbf5a31cb3813c2
Package: php
Architecture: all
Version: 1:7.2+60ubuntu1
Priority: optional
Section: php
Source: php-defaults (60ubuntu1)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 12
Depends: php7.2
Filename: pool/main/p/php-defaults/php_7.2+60ubuntu1_all.deb
Size: 3084
MD5sum: 819cca55fe70ba29e41348bd2719cfb4
SHA1: d42454bf1d4a552725693f9ec72cbd60eae9011a
SHA256: fb00497dae1721eb9b0f1092f7758a9fd7b37815f3e36e44168ff4109121b834
Description: server-side, HTML-embedded scripting language (default)
Description-md5: 778bb04d56a141a57b6ce7e9e2bd3d76
Supported: 5y
Source: php-defaults (92+ubuntu18.04.1+deb.sury.org+2)
Priority: optional
Section: php
Installed-Size: 14
Maintainer: Debian PHP Maintainers
Architecture: all
Version: 2:8.1+92+ubuntu18.04.1+deb.sury.org+2
Depends: php8.1
Filename: pool/main/p/php-defaults/php_8.1+92+ubuntu18.04.1+deb.sury.org+2_all.deb
Size: 7264
MD5sum: 136e8b9c067e76471cc1873822398a2a
SHA1: 527e8c13b7ffc85af5c8e19026a8714754d35638
SHA256: 1e61e51516aee618a046310a27f543eab2ee656722a3998babe9f1041f53056e
Description: server-side, HTML-embedded scripting language (default)
Description-md5: b9ba50eb1ebff6ec8fbf5a31cb3813c2
Package: php
Architecture: all
Version: 1:7.2+60ubuntu1
Priority: optional
Section: php
Source: php-defaults (60ubuntu1)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 12
Depends: php7.2
Filename: pool/main/p/php-defaults/php_7.2+60ubuntu1_all.deb
Size: 3084
MD5sum: 819cca55fe70ba29e41348bd2719cfb4
SHA1: d42454bf1d4a552725693f9ec72cbd60eae9011a
SHA256: fb00497dae1721eb9b0f1092f7758a9fd7b37815f3e36e44168ff4109121b834
Description: server-side, HTML-embedded scripting language (default)
Description-md5: 778bb04d56a141a57b6ce7e9e2bd3d76
Supported: 5y