How to Install and Uninstall gcc Package on Ubuntu 18.04 LTS (Bionic Beaver)

Last updated: May 02,2024

1. Install "gcc" package

Please follow the guidelines below to install gcc on Ubuntu 18.04 LTS (Bionic Beaver)

$ sudo apt update $ sudo apt install gcc

2. Uninstall "gcc" package

Here is a brief guide to show you how to uninstall gcc on Ubuntu 18.04 LTS (Bionic Beaver):

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

3. Information about the gcc package on Ubuntu 18.04 LTS (Bionic Beaver)

Package: gcc
Architecture: amd64
Version: 4:7.4.0-1ubuntu2.3
Priority: optional
Section: devel
Source: gcc-defaults (1.176ubuntu2.3)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian GCC Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 50
Provides: c-compiler
Depends: cpp (>= 4:7.4.0-1ubuntu2.3), gcc-7 (>= 7.4.0-1~)
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_7.4.0-1ubuntu2.3_amd64.deb
Size: 5184
MD5sum: 2d45412bd51748985b4a9dcb51f8243f
SHA1: 3a2fc525e2c1270bf90cbff1f34edd7560ac4b7a
SHA256: 7ef491f26b4c15b45c0221f106f1d44a17e168b5ec951a378ec46c9211d67de9
SHA512: 4ac87f418655bdedd725ae448fd065bae95411260d4d1440d5c472ea47a4304c9e1c5036e9e4dd76ffe2f8ffdb306ae6f5ae83dd46508f536517a3c4659798bd
Description: GNU C compiler
Description-md5: c7efd71c7c651a9ac8b2adf36b137790
Build-Essential: yes
Supported: 5y

Package: gcc
Architecture: amd64
Version: 4:7.3.0-3ubuntu2
Priority: optional
Section: devel
Source: gcc-defaults (1.176ubuntu2)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian GCC Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 50
Provides: c-compiler
Depends: cpp (>= 4:7.3.0-3ubuntu2), gcc-7 (>= 7.3.0-12~)
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_7.3.0-3ubuntu2_amd64.deb
Size: 5192
MD5sum: b4d711615ac4248406d9e1a9f38fae5f
SHA1: a508abdf3f9ceeb09d65daeca63871225792a3b4
SHA256: abe8f767884414dde79c4c5c4b6b7447ce057a07277a6de24f1b96e7e2b5da5a
Description: GNU C compiler
Description-md5: c7efd71c7c651a9ac8b2adf36b137790
Build-Essential: yes
Supported: 5y