How To Install gcc-9-plugin-dev on Ubuntu 20.04

In this tutorial we learn how to install gcc-9-plugin-dev on Ubuntu 20.04. gcc-9-plugin-dev is Files for GNU GCC plugin development. Files for GNU GCC plugin development.

Introduction

In this tutorial we learn how to install gcc-9-plugin-dev on Ubuntu 20.04.

What is gcc-9-plugin-dev

gcc-9-plugin-dev is:

This package contains (header) files for GNU GCC plugin development. It is only used for the development of GCC plugins, but not needed to run plugins.

Package: gcc-9-plugin-dev Architecture: amd64 Version: 9.3.0-10ubuntu2 Priority: optional Section: universe/devel Source: gcc-9 Origin: Ubuntu Maintainer: Ubuntu Core developers [email protected] Original-Maintainer: Debian GCC Maintainers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 8433 Depends: gcc-9-base (= 9.3.0-10ubuntu2), gcc-9 (= 9.3.0-10ubuntu2), libgmp-dev (>= 2:5.0.1~), libmpc-dev (>= 1.0), libc6 (>= 2.14) Filename: pool/universe/g/gcc-9/gcc-9-plugin-dev_9.3.0-10ubuntu2_amd64.deb Size: 1241776 MD5sum: 08c8b2e7b1d3cfd167c84257ff9a037d SHA1: b0216305e064551e30605426f5fb68e155cccb8a SHA256: c74531fa27d3e134e123f0eeb2f2b06920b80b22e1c9878849bd3629298b878c Homepage: http://gcc.gnu.org/ Description-en: Files for GNU GCC plugin development. This package contains (header) files for GNU GCC plugin development. It is only used for the development of GCC plugins, but not needed to run plugins.

There are three methods to install gcc-9-plugin-dev on Ubuntu 20.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install gcc-9-plugin-dev Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install gcc-9-plugin-dev using apt-get by running the following command:

sudo apt-get -y install gcc-9-plugin-dev

Install gcc-9-plugin-dev Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install gcc-9-plugin-dev using apt by running the following command:

sudo apt -y install gcc-9-plugin-dev

Install gcc-9-plugin-dev Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install gcc-9-plugin-dev using aptitude by running the following command:

sudo aptitude -y install gcc-9-plugin-dev

How To Uninstall gcc-9-plugin-dev on Ubuntu 20.04

To uninstall only the gcc-9-plugin-dev package we can use the following command:

sudo apt-get remove gcc-9-plugin-dev

Uninstall gcc-9-plugin-dev And Its Dependencies

To uninstall gcc-9-plugin-dev and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove gcc-9-plugin-dev

Remove gcc-9-plugin-dev Configurations and Data

To remove gcc-9-plugin-dev configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge gcc-9-plugin-dev

Remove gcc-9-plugin-dev configuration, data, and all of its dependencies

We can use the following command to remove gcc-9-plugin-dev configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge gcc-9-plugin-dev

References

Summary

In this tutorial we learn how to install gcc-9-plugin-dev package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.