How to Install and Uninstall php Package on Ubuntu 22.04 LTS (Jammy Jellyfish)
Last updated: December 23,2024
Notice
You can also install and uninstall the php on the following distributions in the same way, as they are all based on the Ubuntu system
- Kubuntu 22.04 LTS
- Lubuntu 22.04 LTS
- Xubuntu 22.04 LTS
- Ubuntu MATE 22.04 LTS
- Ubuntu Studio 22.04 LTS
- Pop!_OS 22.04 LTS
- Zorin OS 16 / Zorin OS 17
- Ubuntu Budgie 22.04
1. Install "php" package
Please follow the steps below to install php on Ubuntu 22.04 LTS (Jammy Jellyfish)
$
sudo apt update
Copied
$
sudo apt install
php
Copied
2. Uninstall "php" package
Please follow the steps below to uninstall php on Ubuntu 22.04 LTS (Jammy Jellyfish):
$
sudo apt remove
php
Copied
$
sudo apt autoclean && sudo apt autoremove
Copied
3. Information about the php package on Ubuntu 22.04 LTS (Jammy Jellyfish)
Package: php
Source: php-defaults (94+ubuntu22.04.1+deb.sury.org+2)
Priority: optional
Section: php
Installed-Size: 14
Maintainer: Debian PHP Maintainers
Architecture: all
Version: 2:8.3+94+ubuntu22.04.1+deb.sury.org+2
Depends: php8.3
Filename: pool/main/p/php-defaults/php_8.3+94+ubuntu22.04.1+deb.sury.org+2_all.deb
Size: 7194
MD5sum: ddbe8bda983317ec23ae3900c9db4d95
SHA1: b58822e15e1011132b9c681f459549c16fd4aa2c
SHA256: a953788067ad6505a88d5dbddb10b3abb3e3996f61347fda698bd82c8e7c2b8a
Description: server-side, HTML-embedded scripting language (default)
Description-md5: 6d8fde392c2734b12a80e464fda054b4
Package: php
Architecture: all
Version: 2:8.1+92ubuntu1
Priority: optional
Section: php
Source: php-defaults (92ubuntu1)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 14
Depends: php8.1
Filename: pool/main/p/php-defaults/php_8.1+92ubuntu1_all.deb
Size: 2756
MD5sum: e0dcf6e3e113ad871d74ff894def4796
SHA1: 9c5ad868454694db624b88b6560bd19a2174ba7b
SHA256: 684c71c097d7af0e02df308735c7aaa019d06a33e2860c19812341d633ae499f
SHA512: 88d9db90da61e6d73fde6cbc5b0966f586af5701b9c96f4a39cde6380c8b3900a03da453052f9ed65d9a5f85083fc151ce617a33a8891ab9c5f4eb87c491da80
Description: server-side, HTML-embedded scripting language (default)
Description-md5: b9ba50eb1ebff6ec8fbf5a31cb3813c2
Source: php-defaults (94+ubuntu22.04.1+deb.sury.org+2)
Priority: optional
Section: php
Installed-Size: 14
Maintainer: Debian PHP Maintainers
Architecture: all
Version: 2:8.3+94+ubuntu22.04.1+deb.sury.org+2
Depends: php8.3
Filename: pool/main/p/php-defaults/php_8.3+94+ubuntu22.04.1+deb.sury.org+2_all.deb
Size: 7194
MD5sum: ddbe8bda983317ec23ae3900c9db4d95
SHA1: b58822e15e1011132b9c681f459549c16fd4aa2c
SHA256: a953788067ad6505a88d5dbddb10b3abb3e3996f61347fda698bd82c8e7c2b8a
Description: server-side, HTML-embedded scripting language (default)
Description-md5: 6d8fde392c2734b12a80e464fda054b4
Package: php
Architecture: all
Version: 2:8.1+92ubuntu1
Priority: optional
Section: php
Source: php-defaults (92ubuntu1)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 14
Depends: php8.1
Filename: pool/main/p/php-defaults/php_8.1+92ubuntu1_all.deb
Size: 2756
MD5sum: e0dcf6e3e113ad871d74ff894def4796
SHA1: 9c5ad868454694db624b88b6560bd19a2174ba7b
SHA256: 684c71c097d7af0e02df308735c7aaa019d06a33e2860c19812341d633ae499f
SHA512: 88d9db90da61e6d73fde6cbc5b0966f586af5701b9c96f4a39cde6380c8b3900a03da453052f9ed65d9a5f85083fc151ce617a33a8891ab9c5f4eb87c491da80
Description: server-side, HTML-embedded scripting language (default)
Description-md5: b9ba50eb1ebff6ec8fbf5a31cb3813c2