How to Uninstall or Install gdc-9 Ubuntu 22.04

Updated: October 20, 2022

This is the GNU D compiler, which compiles D on platforms supported by gcc. It uses the gcc backend to generate optimised code. I will show you how to install gdc-9 on Ubuntu 22.04 in this tutorial.

Requirements to install

  • Operating system: Ubuntu 22.04 is needed for gdc-9 to work
  • Privileges: Ensure that you are able to execute the sudo commands line.

Prerequisites to install gdc-9 on Ubuntu 22.04

Install gdc-9 Ubuntu 22.04

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

Install gdc-9 using APT

This is one of the popular ways to install any Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these steps to get gdc-9 on your Ubuntu 22.04.

Step 1: The APT package repository cache needs to be updated before you try to install, update, or remove any packages. Update the APT database to fetch new packages from Ubuntu. Launch the terminal and enter the following Linux command:

sudo apt -y update

Step 2: Start the package installation on Ubuntu 22.04. After updating, you can install gdc-9 Ubuntu by pasting this command into the terminal and executing it.

sudo apt-get -y install gdc-9

Install gdc-9 using Aptitude

Users can manage their installation, upgrade, and removal of packages with Aptitude and view a list of the packages that are currently available. If you haven’t already installed it on Ubuntu, run this command to do so.

sudo apt -y install aptitude

Then, you can now install gdc-9, just following these steps:

Step 1: Update the APT database to download new packages from Ubuntu. Opening the terminal and executing this Linux command:

sudo apt update

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

sudo aptitude install gdc-9

Uninstall gdc-9 on Ubuntu 22.04

Have you ever thought that uninstalling an application from Ubuntu might be challenging? You’re wrong; any program, not just a gdc-9, can be easily uninstalled by anyone.

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

sudo apt remove --auto-remove gdc-9

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

sudo apt autoremove --purge gdc-9


In this guide, I showed you ways to install gdc-9 on Ubuntu 22.04 and ways to uninstall gdc-9 too. Please contact me if you require any assistance. I’d be delighted to respond.