How to Uninstall and Install gdc Ubuntu 22.04

Updated: August 30, 2022

This is a dependency package providing the default D compiler. Per policy, all packages that contain D sources must use this package in their Build-Depends line. In this guide, I will show you ways to install gdc Ubuntu 22.04.

Requirements

  • Operating system: Ubuntu 22.04 or older versions with more than 2GB RAM
  • Privileges: Ascertain that you are able to execute sudo commands.

Prerequisites to install gdc on Ubuntu 22.04

Install gdc Ubuntu 22.04

gdc is one of the popular ways on Ubuntu now so that this tutorial will show you how to install it in various ways. Choose the one you believe is simple and easy to follow.

Install gdc using APT

This is a popular method for installing Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these instructions to get gdc on your Ubuntu 22.04.

Step 1: You must update the APT package repository cache before attempting to install, update, or remove any packages. Update the APT database to download new packages from Ubuntu. Launching the terminal and entering the following Linux command:

sudo apt-get -y update

Step 2: Start the package installation on Ubuntu 22.04. After updating the system, you can install gdc Ubuntu by executing this command in the terminal.

sudo apt-get install gdc

Install gdc using Aptitude

With Aptitude, users can view a list of available packages and manage their installation, upgrade, and removal of packages. If you didn’t install it on Ubuntu, you need to install it by executing this command.

sudo apt-get -y install aptitude

After that, you can now install gdc, just following these steps:

Step 1: Obtain new packages from Ubuntu by updating the APT database. Launching the terminal and entering the following Linux command:

sudo apt update

Step 2: Install the package on Ubuntu 22.04. You can now install gdc Ubuntu by executing this command in the terminal.

sudo aptitude -y install gdc

Uninstall gdc on Ubuntu 22.04

Have you ever thought that uninstalling an application from Ubuntu is difficult? You are mistaken; Anyone can easily uninstall any program, not just gdc.

You can uninstall gdc on Ubuntu by running this command if you installed it using APT or Aptitude.

sudo apt remove --auto-remove gdc

If you want to uninstall gdc and remove its data and dependencies, you can also run the following command:

sudo apt autoremove --purge gdc

Conclusion

In this tutorial, I showed you ways to install gdc on Ubuntu 22.04 and ways to uninstall gdc too. Please do not hesitate to contact me if you require assistance. I’m delighted to respond.