How to Install and Uninstall php-gd Package on Debian 11 (Bullseye)

Last updated: May 18,2024

1. Install "php-gd" package

Please follow the guidance below to install php-gd on Debian 11 (Bullseye)

$ sudo apt update $ sudo apt install php-gd

2. Uninstall "php-gd" package

Learn how to uninstall php-gd on Debian 11 (Bullseye):

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

3. Information about the php-gd package on Debian 11 (Bullseye)

Package: php-gd
Source: php-defaults (92+0~20220117.43+debian11~1.gbpe0d14e)
Version: 2:8.1+92+0~20220117.43+debian11~1.gbpe0d14e
Architecture: all
Maintainer: Debian PHP Maintainers
Installed-Size: 14
Depends: php-common, php8.1-gd
Priority: optional
Section: php
Filename: pool/main/p/php-defaults/php-gd_8.1+92+0~20220117.43+debian11~1.gbpe0d14e_all.deb
Size: 7424
SHA256: f88e5e96ccbc588f55d1cbf476d8d39620a057739d83b56bfc7f7c557bb62fee
SHA1: 96e0c10e2e7315466a5e376fa081a318fb1d5197
MD5sum: 28baa0f6894065dbb5e9b0cb5abd1225
Description: GD module for PHP [default]
This package provides a GD module for PHP.
.
PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used
open source general-purpose scripting language that is especially suited
for web development and can be embedded into HTML.
.
This package is a dependency package, which depends on Debian's default
PHP version (currently 8.1).
Description-md5: 562eee803f143cd17db5ced34b79b558

Package: php-gd
Source: php-defaults (76)
Version: 2:7.4+76
Installed-Size: 13
Maintainer: Debian PHP Maintainers
Architecture: all
Depends: php-common, php7.4-gd
Description: GD module for PHP [default]
Description-md5: def8a59e42dc1b2ce4a530736f84e75d
Section: php
Priority: optional
Filename: pool/main/p/php-defaults/php-gd_7.4+76_all.deb
Size: 6360
MD5sum: 48875b12b1b3ef3b1a42da701621be33
SHA256: 9b98bcaf309112672687afa1da5838c5483643323bc43b997bdf8b1c8699e770