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