How to Install and Uninstall php-gd Package on Ubuntu 21.10 (Impish Indri)

Last updated: May 17,2024

1. Install "php-gd" package

Here is a brief guide to show you how to install php-gd on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install php-gd

2. Uninstall "php-gd" package

Learn how to uninstall php-gd on Ubuntu 21.10 (Impish Indri):

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

3. Information about the php-gd package on Ubuntu 21.10 (Impish Indri)

Package: php-gd
Source: php-defaults (85+ubuntu21.10.1+deb.sury.org+1)
Priority: optional
Section: php
Installed-Size: 13
Maintainer: Debian PHP Maintainers
Architecture: all
Version: 2:8.0+85+ubuntu21.10.1+deb.sury.org+1
Depends: php-common, php8.0-gd
Filename: pool/main/p/php-defaults/php-gd_8.0+85+ubuntu21.10.1+deb.sury.org+1_all.deb
Size: 6948
MD5sum: 5fe78bd970b32113d8d97d5fae1b6374
SHA1: c802be8f8e310d1f6ea05de1bd28c6846096affe
SHA256: edb9575759a9399ed219ca77597bd05b9027fc43967d77022363455c86bb8f45
Description-en: 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.0).
Description-md5: 3fe602439a714d39a54ceab09344e203

Package: php-gd
Architecture: all
Version: 2:8.0+82~0build1
Priority: optional
Section: php
Source: php-defaults (82~0build1)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 13
Depends: php-common, php8.0-gd
Filename: pool/main/p/php-defaults/php-gd_8.0+82~0build1_all.deb
Size: 2008
MD5sum: 267385ac51eca3df5328e2bc66ac878c
SHA1: 1e0214e207602c90677339807ceee41ef49256b4
SHA256: d4a1825244e2229ae829f57b2cb735a522d53f6cfe74c6f972432658b04c49dd
SHA512: f46ff67870be6c3d891a4fbc774b6187728c6219bc6b077ae6fde62862511200e0464f76a1cbc3325e8e8edfd4317a2633539a6ad3686c4ed4bfde115c5cbabd
Description-en: 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.0).
Description-md5: 3fe602439a714d39a54ceab09344e203