What is build-essential Ubuntu, how to install and use it? (2024)

The build-essentials packages are meta-packages that are necessary for compiling software. They include the GNU debugger, g++/GNU compiler collection, and some more tools and libraries that are required to compile a program. For example, if you need to work on a C/C++ compiler, you need to install essential meta-packages on your system before starting the C compiler installation. When installing the build-essential packages, some other packages such as G++, dpkg-dev, GCC and make, etc. also install on your system.

Above, we have described what the build-essential packages are. In the rest of the article, we will explain how to install and use build-essentials on Ubuntu systems. All terminal commands we have executed on Ubuntu 20.04 system in this article. Let’s dive into the depths!

Installation and use of Build Essential tools on Ubuntu 20.04 system

The build-essential meta-packages can be installed directly from the Ubuntu official repository. These packages are available in the default Ubuntu 20.04 system repository. Just install meta-packages of build-essential tools through the apt package manager. Open the terminal application through the keyboard shortcut ‘Ctrl + Alt + t’.

Update apt repository

Now, you need to update the packages repository before installing the build-essential tools. Type the following command to update the apt repository index:

$ sudo apt update

What is build-essential Ubuntu, how to install and use it? (1)

Install build-essential

Install the build-essential packages by running the below-given command:

After executing the above command, the following result will be shown on the terminal:

What is build-essential Ubuntu, how to install and use it? (2)

Check GCC version

Once the installation is finished, verify the installation of these packages by checking the GCC version on your system with the following command:

$ gcc --version

The installed version of GCC to be displayed on the terminal, which is also shown in the following screenshot:

What is build-essential Ubuntu, how to install and use it? (3)

Now, all GCC compiler libraries and tools have been installed on Ubuntu 20.04 system. However, you can run a C program for testing the installation.

Create C program

Let’s create a C program by using the nano editor as follows:

$ nano testprogram.c

Now, add the below-mentioned lines of code in this nano file:

// testprogram.c

#include <stdio.h>

int main() {
printf("Test, Program!\n");
return 0;
}

What is build-essential Ubuntu, how to install and use it? (4)

Compiling the C program

Save the above file and make an executable file by using the following command:

$ gcc testprogram.c -o testprogram

What is build-essential Ubuntu, how to install and use it? (5)

Run C program

Now, execute the following command to run the C program:

$ ./testprogram

The following output is shown on the terminal after running the above C program:

What is build-essential Ubuntu, how to install and use it? (6)

Conclusion

We have explained the installation of build-essential tools in this article. We have explored what is build-essential and how to install and use it on Ubuntu 20.04 system. Now, you should have the proper understanding of the build-essential and how to install it on the Ubuntu system. The above commands can also be applied to the older Ubuntu versions. To learn more about these required packages, must visit their official website for a better understanding.

What is build-essential Ubuntu, how to install and use it? (2024)
Top Articles
Labour Day in Germany in 2023 | Office Holidays
Microsoft Business Intelligence Solutions | ABCloudz
Busted Newspaper Mcpherson Kansas
Kaiser Ncti
Rural King Credit Card Minimum Credit Score
Texas State Final Grades
Preschool Smiles Discount Code
124 Indian Pointe, Unit 124, Osage Beach, MO 65065 | Compass
Baroque Violin Shop Cincinnati Oh
Nycda Login
Qr 0738
Papa Johns Pizza Hours
XFN: Introduction and Examples
Dial Murray Obituaries Moncks Corner Sc
Julie Ibrance Commercial Actress
Craigs List High Rockies
Macbeth Summary Activity: 5 Act Structure
4 Pm Edt
Boostmaster Lin Yupoo
Craigslist Class A Drivers Texas
10 Bedroom Airbnb Kissimmee Fl
Juanita's Tec*mseh Menu
Starrez Emerson
Beacon Schneider La Porte
Walgreens Colesville
Fr. Martin's Daily Homilies
Marina Mascarenhas (Nina) on LinkedIn: Changing jobs wasn’t originally in my 2024 plans, but I truly believe in… | 62 comments
Craigslist Panama City Fl
Gabrielle Abbate Obituary
Spn 3720 Fmi 15 Cummins
CUE 2016 National Conference Schedule
Pitt Football Recruiting 247
Back Pages Chattanooga
Fanfix Leaked
Master of Science in Data Science | Merrimack Online Programs
Premier Dental Clinic In North Tampa
9Xmovie Worldfree4U
Gilman Springs Road Accident Today 2022
Leonard Trailers Summerville Sc
Determinant Calculator Emath
Craiglist Sacramento Ca
Bbc Weather Milton Keynes
Hapi Burkett
Xsport Fitness Schedule
Serenity Nail Salon Brentwood Tn
0Gomovies To To
Puretalkusa.com/Amac
Daniel Knight Reno Gold
Lifesafer San Jose
Menteri LHK terbitkan aturan yang larang pejuang lingkungan dipidana, akankah menghentikan kriminalisasi? - BBC News Indonesia
Do sprzedania Zenith Captain Power Reserve Elite za cene 11 124 zł od Seller na Chrono24
2024 Indian Calendar for Indian Festivals and Indian Holidays
Latest Posts
Article information

Author: Amb. Frankie Simonis

Last Updated:

Views: 5874

Rating: 4.6 / 5 (56 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Amb. Frankie Simonis

Birthday: 1998-02-19

Address: 64841 Delmar Isle, North Wiley, OR 74073

Phone: +17844167847676

Job: Forward IT Agent

Hobby: LARPing, Kitesurfing, Sewing, Digital arts, Sand art, Gardening, Dance

Introduction: My name is Amb. Frankie Simonis, I am a hilarious, enchanting, energetic, cooperative, innocent, cute, joyous person who loves writing and wants to share my knowledge and understanding with you.