Install build-essential on Ubuntu 24.04

Install build-essential on Ubuntu 24.04

The build-essential is a package that holds an informational list of all other packages for building Debian packages and compiling software. The build-essential installs the following list of individual packages:

No.PackageDescription
1.libc6-devGNU C Library.
2.gccGNU C compiler.
3.g++GNU C++ compiler.
4.makeThe GNU Make tool to build programs and software libraries from the source code.
5.dpkg-devThe development tools to build Debian packages from the source code.

This tutorial demonstrates how to install build-essential on Ubuntu 24.04.

Install build-essential

Run the following command to update the package lists:

sudo apt update

Next, install build-essential:

sudo apt install -y build-essential

Several packages have been installed. Check versions of them individually:

gcc --version
g++ --version
make --version
dpkg-buildpackage --version

Uninstall build-essential

If you want to completely remove build-essential and related dependencies, run the following command:

sudo apt purge --autoremove -y build-essential gcc g++ make

Leave a Comment

Cancel reply

Your email address will not be published.