How To Install colorgcc on Debian 9
Introduction
In this tutorial we learn how to install colorgcc on Debian 9.
What is colorgcc
colorgcc is:
A Perl wrapper to colorize the output of compilers with warning / error messages matching the gcc output format.
There are three methods to install colorgcc on Debian 9. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install colorgcc Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install colorgcc using apt-get by running the following command:
sudo apt-get -y install colorgcc
Install colorgcc Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install colorgcc using apt by running the following command:
sudo apt -y install colorgcc
Install colorgcc 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 Debian. Update apt database with aptitude using the following command.
sudo aptitude update
After updating apt database, We can install colorgcc using aptitude by running the following command:
sudo aptitude -y install colorgcc
How To Uninstall colorgcc on Debian 9
To uninstall only the colorgcc package we can use the following command:
sudo apt-get remove colorgcc
Uninstall colorgcc And Its Dependencies
To uninstall colorgcc and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove colorgcc
Remove colorgcc Configurations and Data
To remove colorgcc configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge colorgcc
Remove colorgcc configuration, data, and all of its dependencies
We can use the following command to remove colorgcc configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge colorgcc
Dependencies
colorgcc have the following dependencies:
References
Summary
In this tutorial we learn how to install colorgcc package on Debian 9 using different package management tools: apt, apt-get and aptitude.