The build-essential is a package which contains an informational list of all other packages needed to build Debian packages and compile software. The build-essential installs the following list of packages:
|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 shows how to install build-essential on Raspberry Pi.
Use SSH to connect to Raspberry Pi. Update the package lists and install build-essential by running these commands:
sudo apt update sudo apt install -y build-essential
Various packages have been installed and we can check versions of them individually.
gcc --version g++ --version make --version dpkg-buildpackage --version
If you decided to completely remove build-essential and related dependencies, then execute the following command:
sudo apt purge --autoremove -y build-essential gcc g++ make