How to Install Make in Linux: A Step-by-Step Guide
Learn how to install the GNU make tool on Linux across Debian/Ubuntu, Fedora/Red Hat, and Arch, verify installation, and troubleshoot common issues with a clear, step-by-step approach from Install Manual.

This guide explains how to install the GNU make tool on Linux, covering Debian/Ubuntu, Fedora/Red Hat, and Arch. It includes verification steps and an optional source-build path. By following distro-specific commands, you’ll have make ready for build tasks in minutes.
What make is and why you need it
GNU Make is a build automation tool that reads a Makefile to compile programs. It's essential for developers and for many open-source projects because it orchestrates the compilation process, tracks dependencies, and speeds up repetitive tasks. On Linux, make is a standard utility that often comes with package “build-essential” or developer-tools groups. Before you install, understand that make is a translator between your code and the compiler, turning source files into executable programs. If you're compiling C/C++ or other languages, make is typically required. In this guide, we focus on installing make on Linux, ensuring you have the right tooling to run builds smoothly. The goal is to have a working make binary accessible from your terminal and to verify its version so you know it's ready for use. According to Install Manual, following distro-specific steps minimizes friction and avoids partial installs. The Install Manual team emphasizes safety and consistency across environments to improve your DIY workflow.
textAlignsWithSearchIntentFeatures():false,
Tools & Materials
- A Linux computer(Any distribution (Debian/Ubuntu, Fedora, Arch, etc.) with sudo access)
- Terminal or SSH client(Access to a command-line interface)
- Sudo privileges(Administrator rights to install packages)
- Internet connection(To fetch packages and updates)
- Build tools package (optional)(Some distros pull in make with build-essential/base-devel)
Steps
Estimated time: 25-50 minutes
- 1
Check if make is installed
Open a terminal and run make --version or command -v make to see if the binary already exists and is runnable. If a version is returned, you can skip to verification. If not found, proceed to distro-specific installation steps. This initial check saves time and ensures your PATH includes the directory where make is installed.
Tip: If the command isn’t found, try which make to locate possible alternatives or symlinks in /usr/bin. - 2
Prepare Debian/Ubuntu by updating the package index
In Debian-based systems, update the package index to ensure you fetch the latest available versions. Run sudo apt-get update. This keeps metadata fresh and avoids attempting to install an outdated package. After updating, you're ready to install the development tools that provide make.
Tip: Running update before install reduces the risk of dependency resolution issues. - 3
Install make on Debian/Ubuntu using build-essential
Install the development toolchain that includes make by running sudo apt-get install -y build-essential. This approach ensures you get a compatible set of compilers and headers. If you only want make, you can install the dedicated make package with sudo apt-get install -y make, but build-essential is the more common choice for building software on Debian/Ubuntu.
Tip: Using build-essential simplifies future builds by providing a full toolchain. - 4
Install make on Fedora/Red Hat via DNF
For Fedora, Red Hat, or CentOS, install make with sudo dnf install -y make. If you prefer a complete set of development tools, you can install the Development Tools group using sudo dnf groupinstall 'Development Tools', which includes make, gcc, and other utilities.
Tip: If make isn’t found, refresh metadata with sudo dnf makecache before retrying. - 5
Install make on Arch Linux
Arch users should run sudo pacman -S --needed make to install just the make package. For a full build environment, include base-devel: sudo pacman -S --needed base-devel. After installation, verify with make --version and note the path usually /usr/bin/make.
Tip: Arch follows a rolling release model; keeping dev tools up to date is best practice. - 6
Optional: build make from source
If distro packages are unavailable or you want a specific version, download the GNU Make source, extract it, then run ./configure && make && sudo make install. The default install path is /usr/local/bin, so you may need to adjust PATH. Building from source gives you full control over the version and features but requires additional dependencies and time.
Tip: Consult INSTALL/README for dependencies and distro-specific tweaks. - 7
Verify installation and basic troubleshooting
After installation, run make --version to confirm the binary appears in your PATH. If you encounter compiler errors, install a compatible compiler (e.g., gcc) and related development headers. If the tool isn’t found, locate the binary with which make or whereis make and ensure /usr/bin is on PATH.
Tip: Keep a record of the commands you used; it helps with repeat installs on other machines. - 8
Final sanity check and next steps
Create a minimal Makefile and run make to ensure the tool compiles a tiny target successfully. This practical test confirms your environment is ready for real projects. If you regularly build software, consider bundling make installation with your preferred language toolchain and continuous integration setup.
Tip: A small test Makefile reinforces your understanding of basic rules and dependencies.
Got Questions?
What is GNU Make and why is it needed on Linux?
GNU Make automates building programs by reading Makefiles. It handles dependencies, runs the right compiler commands, and speeds up development workflows. It’s widely used in C/C++ projects and many open-source builds on Linux.
GNU Make automates building software by using Makefiles, saving you time and ensuring consistent builds.
Can I install make without internet access?
A working internet connection is typically required to download packages from your distro’s repositories. If you’re offline, you’ll need a local repository or a pre-downloaded package cache provided by your admin.
Installation usually needs network access to fetch packages, unless you have a local repository.
Is make included with build-essential or base-devel?
Yes. On Debian-based systems, build-essential includes make along with a C/C++ compiler toolchain. On Arch, base-devel provides a collection of essential build tools, including make.
Make often comes with the broader developer toolchain, so installing the full package group can be convenient.
How can I verify that make is installed correctly?
Run make --version to view the installed version and confirm PATH recognition. You can also create a tiny Makefile and run make to ensure basic functionality.
Check the version and run a quick test make to confirm it works.
What should I do if make is missing after installation?
Double-check the distro’s package name for make, refresh package metadata, and ensure you’re using the correct repository. If needed, install the development tools group that includes make.
If it’s still missing, re-check the package name and repository, then try installing the development tools group.
Is make compatible with macOS or other non-Linux environments?
GNU Make is cross-platform and also runs on macOS with command-line tools. However, the installation steps differ from Linux and depend on your platform’s package manager.
GNU Make works on macOS too, but you’ll need platform-specific installation steps.
Watch Video
Main Points
- Verify make presence first
- Use distro-specific install commands
- Consider a full build-tools package for convenience
- Test with a simple Makefile to confirm success
