GCC stands for GNU Compiler Collection. As the name implies, it is a set of compilers that are used for compiling C and various other source codes in Linux and other operating systems. You can read more about GCC on their official website.
Here at Ibmi Media, we shall look into the procedure of checking the GCC version in Ubuntu 20.04.
If it is not installed, follow this guide to install it: https://linuxapt.com/blog/12-install-gcc-on-ubuntu
1. In order to check the version of GCC installed on your Ubuntu system using this method, issue the following command on terminal:
$ gcc --version
The output returned will show you the version.
2. Run the below command to display the version of gcc installed in the system:
$ gcc -v
This article covers how to easily check the version of GCC (build-essential) running on Ubuntu 20.04 LTS. In fact, GCC, better known as The GNU Compiler Collection, is a set of compilers, development tools, and front ends such as C, C++, Objective-C, Fortran, Ada, Go, and D.
How To Uninstall gcc from Ubuntu 21.04 ?
To uninstall only the gcc package we can use the following command:
$ sudo apt-get remove gcc
We can use the following command to remove gcc configurations, data and all of its dependencies, we can use the following command:
$ sudo apt-get -y autoremove --purge gcc