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

Last updated: November 22,2024

1. Install "php-gd" package

Here is a brief guide to show you how to install php-gd on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install php-gd

2. Uninstall "php-gd" package

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

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

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

Package: php-gd
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-gd
Filename: pool/main/p/php-defaults/php-gd_8.3+94+ubuntu20.04.1+deb.sury.org+2_all.deb
Size: 7336
MD5sum: a0f5b007192d6eeb7457d980cd098209
SHA1: 9243fa9b12991fd043e496c566745f3a0a3af1a9
SHA256: 312e2ea57457cafeccba916ccaaeae726d8f13ef0a5d1f535e40db6e03cf0cdc
Description: GD module for PHP [default]
Description-md5: edbd828845e5531d40229c6dfe58f84c

Package: php-gd
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-gd
Filename: pool/main/p/php-defaults/php-gd_7.4+75_all.deb
Size: 2000
MD5sum: 243d0b4e99a5b602499a12c12ee09961
SHA1: 3efc30bbf84e7b8bef8c4825447fa3f7cbb4f165
SHA256: ecc7517cbac0d19661e4444fec42370535de1295d821420121d2137184fbc2f4
Description: GD module for PHP [default]
Description-md5: def8a59e42dc1b2ce4a530736f84e75d