How To Install make on Ubuntu
Posted on April 1, 2023  (Last modified on May 20, 2023 )
2 minutes • 411 words
Introduction
In this tutorial we learn how to install make on Ubuntu.
What is make
make is:
GNU Make is a utility which controls the generation of executables and other target files of a program from the program’s source files. It determines automatically which pieces of a large program need to be (re)created, and issues the commands to (re)create them. Make can be used to organize any task in which targets (files) are to be automatically updated based on input files whenever the corresponding input is newer — it is not limited to building computer programs. Indeed, Make is a general purpose dependency solver.
There are three methods to install make on Ubuntu. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install make Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install make using apt-get by running the following command:
sudo apt-get -y install make
Install make Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install make using apt by running the following command:
sudo apt -y install make
Install make 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 make using aptitude by running the following command:
sudo aptitude -y install make
How To Uninstall make on Ubuntu
To uninstall only the make package we can use the following command:
sudo apt-get remove make
Uninstall make And Its Dependencies
To uninstall make and its dependencies that are no longer needed by Ubuntu, we can use the command below:
sudo apt-get -y autoremove make
Remove make Configurations and Data
To remove make configuration and data from Ubuntu we can use the following command:
sudo apt-get -y purge make
Remove make configuration, data, and all of its dependencies
We can use the following command to remove make configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge make
Dependencies
make have the following dependencies:
References
Summary
In this tutorial we learn how to install make package on Ubuntu using different package management tools: apt, apt-get and aptitude.