In this tutorial, you will learn how to install make in Ubuntu 22.04.
make command allows you to build and compile a source code of an app that you may have downloaded in your machine, by compiling the source code you are able to build and use the app.
In order to use the make command in your Ubuntu 22.04, you must have make
installed on your system.
Install make in Ubuntu 22.04
The make package can be easily installed in Ubuntu 22.04, one way of installing make in Ubuntu 22.04, is by using apt package manager.
Step 1 - Update the system
Before installing make in your system, you need to update the package index so that you are able to download the make package.
sudo apt update
Step 2 - Install make
Package index should be now refreshed, and you should be able to install make.
In this tutorial, we are using apt package manager to install make.
To install make via apt simply run the command below.
sudo apt install make -y
Alternatively, you can install make by using Aptitude package manager.
sudo aptitude install make
Step 3 - Check if make is installed correctly
make is now installed in your machine, and you should be able to use it.However, first ensure that make was installed correctly, and that you can run it.
To do so, simply check make version, via the command below.
make --version
As you can see, we are running make 4.3 version.
The version command is not the only way to check if make is installed, you can also use the whereis
command, to see if make's binary exists.
whereis make
If make was installed correctly, you should see where make binary is located.
As you can see, make binary is located at /usr/bin/make
Step 4 - Use make
Once you have verified that make was installed correctly, you can now proceed to compile a source code by using the make
command.
Depending on the source code or project that you are trying to build, first you need to navigate to the project directory.
cd project
And compile the project with
sudo make install
Uninstall make in Ubuntu 22.04
If something went wrong during the installation of make, and you need to uninstall it, then you can easily uninstall it via apt.
sudo apt remove make
Conclusion
In this tutorial, you learned how to install and uninstall make in Ubuntu 22.04.