How to Install and Uninstall php-gmp Package on Ubuntu 20.04 LTS (Focal Fossa)

Last updated: May 20,2024

1. Install "php-gmp" package

Please follow the steps below to install php-gmp on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install php-gmp

2. Uninstall "php-gmp" package

Please follow the guidelines below to uninstall php-gmp on Ubuntu 20.04 LTS (Focal Fossa):

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

3. Information about the php-gmp package on Ubuntu 20.04 LTS (Focal Fossa)

Package: php-gmp
Source: php-defaults (94+ubuntu20.04.1+deb.sury.org+2)
Priority: optional
Section: php
Installed-Size: 14
Maintainer: Debian PHP Maintainers
Architecture: all
Version: 2:8.3+94+ubuntu20.04.1+deb.sury.org+2
Depends: php-common, php8.3-gmp
Filename: pool/main/p/php-defaults/php-gmp_8.3+94+ubuntu20.04.1+deb.sury.org+2_all.deb
Size: 7340
MD5sum: 935b1d5f478ddc0185dbab80b6040915
SHA1: 2271023858eff3e089a287b20dabab0cd7d3c3d5
SHA256: ca99e2bf7ce0636cfe74d52904fef7930972ef1cb90c866958d4fabd7e2f1982
Description: GMP module for PHP [default]
Description-md5: 4424fb065faa7467f18d298d3683b934

Package: php-gmp
Architecture: all
Version: 2:7.4+75
Priority: optional
Section: php
Source: php-defaults (75)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 13
Depends: php-common, php7.4-gmp
Filename: pool/main/p/php-defaults/php-gmp_7.4+75_all.deb
Size: 1996
MD5sum: 37147a8916a0fde97c6b9df25c46adcf
SHA1: 8881b33a73d3367e2f3020a7beae1421628dcb27
SHA256: 00b6aa37655008ee60a7d97170587001f5dafb4e1550fb89e82ac3e19455c1c2
Description: GMP module for PHP [default]
Description-md5: 8d56067bb325fdad135546b39d332500