Install build-essential on Raspberry Pi

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-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 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

Leave a Comment

Your email address will not be published. Required fields are marked *