How To Install eclipse-cdt-pkg-config on Ubuntu 18.04

In this tutorial we learn how to install eclipse-cdt-pkg-config on Ubuntu 18.04. eclipse-cdt-pkg-config is pkg-config support for Eclipse C/C++ development tools

Introduction

In this tutorial we learn how to install eclipse-cdt-pkg-config on Ubuntu 18.04.

What is eclipse-cdt-pkg-config

eclipse-cdt-pkg-config is:

The aim of the Eclipse plug-in is to provide automation of configuration needed for projects using pkg-config, such as GTK+ and gtkmm.

The plug-in will set options and switches automatically that gcc needs to add in the selected packages - specifically the header file paths, the libraries, and some other gcc switches.

There are three methods to install eclipse-cdt-pkg-config on Ubuntu 18.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 eclipse-cdt-pkg-config Using apt-get

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

sudo apt-get update

After updating apt database, We can install eclipse-cdt-pkg-config using apt-get by running the following command:

sudo apt-get -y install eclipse-cdt-pkg-config

Install eclipse-cdt-pkg-config Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install eclipse-cdt-pkg-config using apt by running the following command:

sudo apt -y install eclipse-cdt-pkg-config

Install eclipse-cdt-pkg-config 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 eclipse-cdt-pkg-config using aptitude by running the following command:

sudo aptitude -y install eclipse-cdt-pkg-config

How To Uninstall eclipse-cdt-pkg-config on Ubuntu 18.04

To uninstall only the eclipse-cdt-pkg-config package we can use the following command:

sudo apt-get remove eclipse-cdt-pkg-config

Uninstall eclipse-cdt-pkg-config And Its Dependencies

To uninstall eclipse-cdt-pkg-config and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove eclipse-cdt-pkg-config

Remove eclipse-cdt-pkg-config Configurations and Data

To remove eclipse-cdt-pkg-config configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge eclipse-cdt-pkg-config

Remove eclipse-cdt-pkg-config configuration, data, and all of its dependencies

We can use the following command to remove eclipse-cdt-pkg-config configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge eclipse-cdt-pkg-config

References

Summary

In this tutorial we learn how to install eclipse-cdt-pkg-config package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.