How to Install and Uninstall gcc Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: May 02,2024

1. Install "gcc" package

Please follow the guidance below to install gcc on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install gcc

2. Uninstall "gcc" package

Please follow the instructions below to uninstall gcc on Ubuntu 16.04 LTS (Xenial Xerus):

$ sudo apt remove gcc $ sudo apt autoclean && sudo apt autoremove

3. Information about the gcc package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: gcc
Priority: optional
Section: devel
Installed-Size: 44
Maintainer: Ubuntu Developers
Original-Maintainer: Debian GCC Maintainers
Architecture: amd64
Source: gcc-defaults (1.150ubuntu1)
Version: 4:5.3.1-1ubuntu1
Provides: c-compiler
Depends: cpp (>= 4:5.3.1-1ubuntu1), gcc-5 (>= 5.3.1-3~)
Recommends: libc6-dev | libc-dev
Suggests: gcc-multilib, make, manpages-dev, autoconf, automake, libtool, flex, bison, gdb, gcc-doc
Conflicts: gcc-doc (<< 1:2.95.3)
Filename: pool/main/g/gcc-defaults/gcc_5.3.1-1ubuntu1_amd64.deb
Size: 5244
MD5sum: df1516b203a66a86a728eab7a4c349e8
SHA1: 93d83d4bc56d8720faaca87cd2b44dfdd4c94fa8
SHA256: 4afc5ce013cc7a562692eca2e4f429029974afca5fee02a8fa166341553a34bd
Description-en: GNU C compiler
This is the GNU C compiler, a fairly portable optimizing compiler for C.
.
This is a dependency package providing the default GNU C compiler.
Description-md5: c7efd71c7c651a9ac8b2adf36b137790
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Build-Essential: yes
Origin: Ubuntu
Supported: 5y
Task: ubuntu-desktop, ubuntu-usb, kubuntu-desktop, kubuntu-full, edubuntu-desktop, edubuntu-usb, xubuntu-core, xubuntu-desktop, mythbuntu-frontend, mythbuntu-desktop, mythbuntu-backend-slave, mythbuntu-backend-master, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntu-gnome-desktop, ubuntukylin-desktop