How To Install ccontrol on Ubuntu 18.04
Introduction
In this tutorial we learn how to install ccontrol on Ubuntu 18.04.
What is ccontrol
ccontrol is:
The ccontrol program takes over the roles of the compiler, linker and make, and reads a configuration file to decide what to do before invoking them. This is particularly useful for centralized control over commands and options, such as enabling distcc and ccache. It is also great for controlling parallelism and which compiler versions to use, based on the directory and make targets.
There are three methods to install ccontrol 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 ccontrol Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install ccontrol using apt-get by running the following command:
sudo apt-get -y install ccontrol
Install ccontrol Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install ccontrol using apt by running the following command:
sudo apt -y install ccontrol
Install ccontrol 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 ccontrol using aptitude by running the following command:
sudo aptitude -y install ccontrol
How To Uninstall ccontrol on Ubuntu 18.04
To uninstall only the ccontrol package we can use the following command:
sudo apt-get remove ccontrol
Uninstall ccontrol And Its Dependencies
To uninstall ccontrol and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove ccontrol
Remove ccontrol Configurations and Data
To remove ccontrol configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge ccontrol
Remove ccontrol configuration, data, and all of its dependencies
We can use the following command to remove ccontrol configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge ccontrol
References
Summary
In this tutorial we learn how to install ccontrol package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.