How to Install and Uninstall php-gd Package on Debian 12 (Bookworm)

Last updated: May 14,2024

1. Install "php-gd" package

This guide covers the steps necessary to install php-gd on Debian 12 (Bookworm)

$ sudo apt update $ sudo apt install php-gd

2. Uninstall "php-gd" package

Please follow the steps below to uninstall php-gd on Debian 12 (Bookworm):

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

3. Information about the php-gd package on Debian 12 (Bookworm)

Package: php-gd
Source: php-defaults (94+0~20240205.51+debian12~1.gbp6faa2e)
Version: 2:8.3+94+0~20240205.51+debian12~1.gbp6faa2e
Architecture: all
Maintainer: Debian PHP Maintainers
Installed-Size: 10
Depends: php-common, php8.3-gd
Priority: optional
Section: php
Filename: pool/main/p/php-defaults/php-gd_8.3+94+0~20240205.51+debian12~1.gbp6faa2e_all.deb
Size: 3856
SHA256: 4a885be7fe7a9bc60b1b8267484773ff8c67a5269f43e1b0f29ad3bd883dd377
SHA1: 232d54202841f5e0a822f206ae1b5dec9af67cda
MD5sum: 14b801874bfbd37973475778164c3e48
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.3).
Description-md5: edbd828845e5531d40229c6dfe58f84c

Package: php-gd
Source: php-defaults (93)
Version: 2:8.2+93
Installed-Size: 10
Maintainer: Debian PHP Maintainers
Architecture: all
Depends: php-common, php8.2-gd
Description: GD module for PHP [default]
Description-md5: 63f8d60b9352e72ef3736673be60b9a2
Section: php
Priority: optional
Filename: pool/main/p/php-defaults/php-gd_8.2+93_all.deb
Size: 3648
MD5sum: 93bb376f5c197c5e57e2f31312d29eb9
SHA256: adce409a98adb466f164f624e1c3238b222d973fd76a8f34a14c504d628e35cc