Install Build Essentials In Ubuntu Install Build Essentials In Ubuntu

Install Build Essentials In Ubuntu

Install Build Essentials In Ubuntu

Sometime you might come across the requirements to install build essentials while installing packages from source. build-essential package is a meta package that is required to build a software. They contain the GNU/g++ compiler collection, GNU debugger. When we install build-essential,  Packages like GCC, make, G++, dpkg-dev, etc., are also installed on our system.

Build Essentials Are:

  • gcc: the GNU C compiler
  • g++: the GNU C++ compiler.
  • libc6-dev: provides the development libraries and header files for the GNU C Library.
  • make: Uses the instruction from the makefile to make software.
  • dpkg-dev: Create, distribute, and maintain .deb packages

How To Install Build Essentials In Ubuntu

Run the following command to install any pending updates for your existing packages:

sudo apt update && sudo apt upgrade -y

Run the following command in your terminal to install the build-essential package. It is an easy process.

sudo apt install build-essential 

After executing the above command, Run the following command to verify the installation. You can check the installed version of GCC :

gcc --version

Optional:

You can also install the manual pages. It can help you while executing the build-essential package installation. This is not the compulsory process. You can skip it.

sudo apt install manpages-dev

How To Uninstall Build Essentials In Ubuntu

Run the following  command to remove or uninstall build essentials from Ubuntu based operating system.

sudo apt purge --auto-remove build-essential

Leave a Reply

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