How to Install and Uninstall php Package on Linux Mint 21.3 (Virginia)

Last updated: November 05,2024

1. Install "php" package

Please follow the steps below to install php on Linux Mint 21.3 (Virginia)

$ sudo apt update $ sudo apt install php

2. Uninstall "php" package

This tutorial shows how to uninstall php on Linux Mint 21.3 (Virginia):

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

3. Information about the php package on Linux Mint 21.3 (Virginia)

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