The GNU Compiler Collection (GCC) is an open-source collection of compilers and libraries supporting C, C++, Objective-C, Fortran, Ada, Go, and D programming languages. The Linux kernel, the GNU utilities, and many other projects are compiled with GCC.

This tutorial explains how to install the GCC compiler on Debian 10, Buster. The same instructions apply for Debian 9 and any Debian-based distribution.


To install packages on your Debian system, you must be logged in as a user with sudo privileges .

Installing GCC on Debian

The default Debian repositories contain a meta-package named build-essential that contains the GCC compiler and other libraries and utilities required for compiling software.

Follow the steps below to install the GCC Compiler Debian 10:

  1. First, update the packages list:
sudo apt update
  1. Install the build-essential package by running:
sudo apt install build-essential
  1. You may also want to install the manual pages that includes documentation about using GNU/Linux for development:
sudo apt-get install manpages-dev
  1. To confirm that the GCC compiler is successfully installed type gcc --version:
gcc --version
  1. At the time of writing this article, the default version of GCC available in the Debian 10 repositories is 8.3.0:
gcc (Debian 8.3.0-6) 8.3.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO

That’s it. You have successfully installed GCC on your Debian machine.


How to Install GCC Compiler on Debian 10 Linux
34.50 GEEK