How to Install and Uninstall php Package on Ubuntu 24.04 LTS (Noble Numbat)

Last updated: May 10,2024

1. Install "php" package

This is a short guide on how to install php on Ubuntu 24.04 LTS (Noble Numbat)

$ sudo apt update $ sudo apt install php

2. Uninstall "php" package

Please follow the guidance below to uninstall php on Ubuntu 24.04 LTS (Noble Numbat):

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

3. Information about the php package on Ubuntu 24.04 LTS (Noble Numbat)

Package: php
Architecture: all
Version: 2:8.3+93ubuntu2
Priority: optional
Section: php
Source: php-defaults (93ubuntu2)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 11
Depends: php8.3
Filename: pool/main/p/php-defaults/php_8.3+93ubuntu2_all.deb
Size: 4076
MD5sum: 5b99c81a2f1f3dc301d456f78e51ffc6
SHA1: 697963ddfab94b2aa5f904f7a983fe3836ecf2b9
SHA256: 869c38d3cfc782e6c0d01c0b56c734b63eb57028c50359fc93c2ef9241055344
SHA512: 7fa420e139a852db25dfa2da184c0df2576fa61058c2498710fdeaf8afe0f21fad8cb4f54367b2915cde26dc965f4ee74af5bd5eb240759337f9de5e2beabc71
Description: server-side, HTML-embedded scripting language (default)
Description-md5: 6d8fde392c2734b12a80e464fda054b4