Tutorials

How to Install build-essentials in CentOS or Ubuntu

Linux is an operating system suited for software development. In Linux, you can build and run various software written in different languages, such as C, C++, Python, and Java.

However, in default, mainstream Linux distributions do not bundle development tools – they have to be installed separately through the package manager upon successful installation of the operating system.

Installing the development tools are easy, requiring only a few commands in the terminal. You also need to have internet connection as the packages are being downloaded on the fly after you issued the install command.

In CentOS Linux, the current package manager is called “dnf”, which is short of “dandified Yum”. DNF based on RPM (RedHat Package ManagerA) and offers greater speed and stability compared to Yum, which it superseded. Also, in CentOS, the “build-essentials” metapackage is called “Development Tools” and can be installed by issuing this following command in the terminal:

$ sudo dnf group install "Development Tools"

In Ubuntu, the installation and uninstallation of packages are handled by APT, or “Advanced Packaging Tool”. APT is fast, easy to use, and designed to avoid dependency hell on Debian-based distributions.

READ: How To Install Nginx, PHP7.3-FPM and MariaDB 10.4 on CentOS 7

APT is designed around DEB packages, but could also be ported to handle other package systems (such as RPM). In Ubuntu, you can install all the necessary packages for software development by installing build-essentials through this following command:

$ sudo apt-get update
$ sudo apt-get install build-essential

In short, the package management systems of both CentOS and Ubuntu is easy to use and allows you to install necessary packages for software development. They also offer a graphical user interface if you are using desktop window managers.

By using the package manager, you can avoid situations where you are stuck with the older software version as the latest packages are always available in the package repository.

Ubuntu Server Admin

Recent Posts

Deploy RustDesk On Ubuntu VPS for Self-Hosted AnyDesk Alternative

This article demonstrates how to deploy RustDesk on Ubuntu VPS for self-hosted AnyDesk alternative, enabling…

2 days ago

🚀 Deploy ERPNext on Ubuntu VPS

This article provides a guide demonstrating how to deploy ERPNext on Ubuntu VPS. This guide…

1 week ago

Advantech AOM-2721 is now Ubuntu Certified

Canonical announces that the Advantech AOM-2721 is officially joining the list of Ubuntu Certified Hardware.…

2 weeks ago

Ruby and Rails Performance Roundup: The Backlog Edition

Yet again instead of tweets, a blog post. The backlog got out of hand -…

2 weeks ago

How to Deploy OpenProject on Ubuntu VPS

This article provides a guide demonstrating how to deploy OpenProject on Ubuntu VPS. What is…

2 weeks ago

Canonical integrates NVIDIA Nemotron 3.5 Lightning with Ubuntu for always-on AI agents

Canonical is pleased to announce that  NVIDIA’s newly introduced NVIDIA Nemotron 3.5 Lightning, an open,…

2 weeks ago