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. | Package | Description |
---|---|---|
1. | libc6-dev | GNU C Library. |
2. | gcc | GNU C compiler. |
3. | g++ | GNU C++ compiler. |
4. | make | The GNU Make tool to build programs and software libraries from the source code. |
5. | dpkg-dev | The 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