How to Install and Uninstall php7.2 Package on Ubuntu 22.04 LTS (Jammy Jellyfish)
Last updated: November 26,2024
Notice
You can also install and uninstall the php7.2 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 "php7.2" package
Please follow the steps below to install php7.2 on Ubuntu 22.04 LTS (Jammy Jellyfish)
$
sudo apt update
Copied
$
sudo apt install
php7.2
Copied
2. Uninstall "php7.2" package
Please follow the steps below to uninstall php7.2 on Ubuntu 22.04 LTS (Jammy Jellyfish):
$
sudo apt remove
php7.2
Copied
$
sudo apt autoclean && sudo apt autoremove
Copied
3. Information about the php7.2 package on Ubuntu 22.04 LTS (Jammy Jellyfish)
Package: php7.2
Priority: optional
Section: php
Installed-Size: 92
Maintainer: Debian PHP Maintainers
Architecture: all
Version: 7.2.34-43+ubuntu22.04.1+deb.sury.org+1
Provides: php
Depends: libapache2-mod-php7.2 | php7.2-fpm | php7.2-cgi, php7.2-common
Filename: pool/main/p/php7.2/php7.2_7.2.34-43+ubuntu22.04.1+deb.sury.org+1_all.deb
Size: 58378
MD5sum: 6b95e2b94631e525b67b1d3a3664d6dd
SHA1: b9a0d89450ffe471962ce6fc61358578ad37fea7
SHA256: e3a05845a21eae9769bbafa8974fabb3337c0c249f93c5140b6fea4f1fe241f0
Description: server-side, HTML-embedded scripting language (metapackage)
Description-md5: 86488d7a405bdcbac9ece7c307f30abb
Priority: optional
Section: php
Installed-Size: 92
Maintainer: Debian PHP Maintainers
Architecture: all
Version: 7.2.34-43+ubuntu22.04.1+deb.sury.org+1
Provides: php
Depends: libapache2-mod-php7.2 | php7.2-fpm | php7.2-cgi, php7.2-common
Filename: pool/main/p/php7.2/php7.2_7.2.34-43+ubuntu22.04.1+deb.sury.org+1_all.deb
Size: 58378
MD5sum: 6b95e2b94631e525b67b1d3a3664d6dd
SHA1: b9a0d89450ffe471962ce6fc61358578ad37fea7
SHA256: e3a05845a21eae9769bbafa8974fabb3337c0c249f93c5140b6fea4f1fe241f0
Description: server-side, HTML-embedded scripting language (metapackage)
Description-md5: 86488d7a405bdcbac9ece7c307f30abb