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

In this tutorial we learn how to install gcc-10-plugin-dev on Ubuntu 20.04. gcc-10-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-10-plugin-dev on Ubuntu 20.04.

What is gcc-10-plugin-dev

gcc-10-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-10-plugin-dev Architecture: amd64 Version: 10-20200411-0ubuntu1 Priority: optional Section: universe/devel Source: gcc-10 Origin: Ubuntu Maintainer: Ubuntu Core developers [email protected] Original-Maintainer: Debian GCC Maintainers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 8798 Depends: gcc-10-base (= 10-20200411-0ubuntu1), gcc-10 (= 10-20200411-0ubuntu1), libgmp-dev (>= 2:5.0.1~), libmpc-dev (>= 1.0), libc6 (>= 2.14) Filename: pool/universe/g/gcc-10/gcc-10-plugin-dev_10-20200411-0ubuntu1_amd64.deb Size: 1285920 MD5sum: 8c12590074d8a6994f10cc2cbe310d2e SHA1: 536986412bd08da83e7fea9d84dea23722e4cd1a SHA256: 5cffed1cf1551fc60e3f7c12f3e890c9a021e38d1fbf4ccb77036890287d4335 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-10-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-10-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-10-plugin-dev using apt-get by running the following command:

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

Install gcc-10-plugin-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

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

Install gcc-10-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-10-plugin-dev using aptitude by running the following command:

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

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

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

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

Uninstall gcc-10-plugin-dev And Its Dependencies

To uninstall gcc-10-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-10-plugin-dev

Remove gcc-10-plugin-dev Configurations and Data

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

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

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

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

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

References

Summary

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