How to Install and Uninstall php-gd Package on Ubuntu 24.04 LTS (Noble Numbat)

Last updated: May 18,2024

1. Install "php-gd" package

Please follow the guidance below to install php-gd on Ubuntu 24.04 LTS (Noble Numbat)

$ sudo apt update $ sudo apt install php-gd

2. Uninstall "php-gd" package

This tutorial shows how to uninstall php-gd on Ubuntu 24.04 LTS (Noble Numbat):

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

3. Information about the php-gd package on Ubuntu 24.04 LTS (Noble Numbat)

Package: php-gd
Architecture: all
Version: 2:8.3+93ubuntu2
Priority: optional
Section: php
Source: php-defaults (93ubuntu2)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 11
Depends: php-common, php8.3-gd
Filename: pool/main/p/php-defaults/php-gd_8.3+93ubuntu2_all.deb
Size: 1830
MD5sum: baf569ba65ece76d339215e670306ec8
SHA1: ff2e969b2eb8ae4dc52bcdfd0599fcc8485ced05
SHA256: 565fac8c61b5fb84ef55617ff9c392e0cab0ef633b16176ff52d85cf7fe4fd58
SHA512: ff646881e8bf133f6806cb21bf7db6c5b6543fd46cb3461382aa6fd457c64b77743336c2f1fa24569170ff34f2769b5672d146d173dbc39060f629e808052a4e
Description: GD module for PHP [default]
Description-md5: edbd828845e5531d40229c6dfe58f84c