How to Install and Uninstall php-gd Package on Ubuntu 18.04 LTS (Bionic Beaver)

Last updated: December 23,2024

1. Install "php-gd" package

This tutorial shows how to install php-gd on Ubuntu 18.04 LTS (Bionic Beaver)

$ sudo apt update $ sudo apt install php-gd

2. Uninstall "php-gd" package

Here is a brief guide to show you how to uninstall php-gd on Ubuntu 18.04 LTS (Bionic Beaver):

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

3. Information about the php-gd package on Ubuntu 18.04 LTS (Bionic Beaver)

Package: php-gd
Source: php-defaults (92+ubuntu18.04.1+deb.sury.org+2)
Priority: optional
Section: php
Installed-Size: 14
Maintainer: Debian PHP Maintainers
Architecture: all
Version: 2:8.1+92+ubuntu18.04.1+deb.sury.org+2
Depends: php-common, php8.1-gd
Filename: pool/main/p/php-defaults/php-gd_8.1+92+ubuntu18.04.1+deb.sury.org+2_all.deb
Size: 7284
MD5sum: 07c9cc70cb506c2efdefe0abaf690d3e
SHA1: dbeaac4d57c82e2104eff2bb77950ca2c156125c
SHA256: 8199815badd7da46dceff1257f68a130f9fcf53892cd85e8d59911110af07563
Description: GD module for PHP [default]
Description-md5: 562eee803f143cd17db5ced34b79b558

Package: php-gd
Architecture: all
Version: 1:7.2+60ubuntu1
Priority: optional
Section: php
Source: php-defaults (60ubuntu1)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 12
Depends: php-common, php7.2-gd
Filename: pool/main/p/php-defaults/php-gd_7.2+60ubuntu1_all.deb
Size: 1996
MD5sum: ae0e312dec5db146aab1cbfb14a8ef2a
SHA1: aa421e29135aff63d8d1329ec85eefb2fa498891
SHA256: ff13272662f8ff2f0a8cfd49cf4804998a3e78aaaa0e227df5221aa231449e93
Description: GD module for PHP [default]
Description-md5: 6438a3c7ff1c62cd576d5b3171465bef
Supported: 5y