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

Last updated: December 25,2024

1. Install "gcc-7" package

Please follow the step by step instructions below to install gcc-7 on Ubuntu 18.04 LTS (Bionic Beaver)

$ sudo apt update $ sudo apt install gcc-7

2. Uninstall "gcc-7" package

Please follow the instructions below to uninstall gcc-7 on Ubuntu 18.04 LTS (Bionic Beaver):

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

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

Package: gcc-7
Architecture: amd64
Version: 7.5.0-3ubuntu1~18.04
Priority: optional
Section: devel
Origin: Ubuntu
Maintainer: Ubuntu Core developers
Original-Maintainer: Debian GCC Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 27325
Provides: c-compiler
Depends: cpp-7 (= 7.5.0-3ubuntu1~18.04), gcc-7-base (= 7.5.0-3ubuntu1~18.04), libcc1-0 (>= 7.5.0-3ubuntu1~18.04), binutils (>= 2.30), libgcc-7-dev (= 7.5.0-3ubuntu1~18.04), libc6 (>= 2.15), libgcc1 (>= 1:3.0), libgmp10 (>= 2:5.0.1~), libisl19 (>= 0.15), libmpc3, libmpfr6 (>= 3.1.3), libstdc++6 (>= 5), zlib1g (>= 1:1.1.4)
Recommends: libc6-dev (>= 2.13-0ubuntu6)
Suggests: gcc-7-multilib, gcc-7-doc (>= 7), gcc-7-locales (>= 7), libgcc1-dbg (>= 1:7.5.0-3ubuntu1~18.04), libgomp1-dbg (>= 7.5.0-3ubuntu1~18.04), libitm1-dbg (>= 7.5.0-3ubuntu1~18.04), libatomic1-dbg (>= 7.5.0-3ubuntu1~18.04), libasan4-dbg (>= 7.5.0-3ubuntu1~18.04), liblsan0-dbg (>= 7.5.0-3ubuntu1~18.04), libtsan0-dbg (>= 7.5.0-3ubuntu1~18.04), libubsan0-dbg (>= 7.5.0-3ubuntu1~18.04), libcilkrts5-dbg (>= 7.5.0-3ubuntu1~18.04), libmpx2-dbg (>= 7.5.0-3ubuntu1~18.04), libquadmath0-dbg (>= 7.5.0-3ubuntu1~18.04)
Replaces: cpp-7 (<< 7.1.1-8), gccgo-7 (<< 7.5.0-3ubuntu1~18.04)
Filename: pool/main/g/gcc-7/gcc-7_7.5.0-3ubuntu1~18.04_amd64.deb
Size: 9381188
MD5sum: f30d7be636a20b5b4e55636847641509
SHA1: 97d04538fbe207d959b08bb8a5d6eff290e6b38c
SHA256: e325ed51b24372d0d655e0887922778932b11f7948ec37dbd4ff357688081b40
SHA512: 03b7ae66cda207ffa96e1e65f7cdf8bc223af167fbf5d1738e3718cb9d6e0afd9c15b940371648b8b6c9dd15403cc9d707aa3a91d1af723efef1e99234630b20
Homepage: http://gcc.gnu.org/
Description: GNU C compiler
Description-md5: 394374e688b1afb3af5f419895d29698
Build-Essential: yes
Supported: 5y

Package: gcc-7
Architecture: amd64
Version: 7.3.0-16ubuntu3
Priority: optional
Section: devel
Origin: Ubuntu
Maintainer: Ubuntu Core developers
Original-Maintainer: Debian GCC Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 25971
Provides: c-compiler
Depends: cpp-7 (= 7.3.0-16ubuntu3), gcc-7-base (= 7.3.0-16ubuntu3), libcc1-0 (>= 7.3.0-16ubuntu3), binutils (>= 2.30), libgcc-7-dev (= 7.3.0-16ubuntu3), libc6 (>= 2.15), libgcc1 (>= 1:3.0), libgmp10 (>= 2:5.0.1~), libisl19 (>= 0.15), libmpc3, libmpfr6 (>= 3.1.3), libstdc++6 (>= 5), zlib1g (>= 1:1.1.4)
Recommends: libc6-dev (>= 2.13-0ubuntu6)
Suggests: gcc-7-multilib, gcc-7-doc (>= 7), gcc-7-locales (>= 7), libgcc1-dbg (>= 1:7.3.0-16ubuntu3), libgomp1-dbg (>= 7.3.0-16ubuntu3), libitm1-dbg (>= 7.3.0-16ubuntu3), libatomic1-dbg (>= 7.3.0-16ubuntu3), libasan4-dbg (>= 7.3.0-16ubuntu3), liblsan0-dbg (>= 7.3.0-16ubuntu3), libtsan0-dbg (>= 7.3.0-16ubuntu3), libubsan0-dbg (>= 7.3.0-16ubuntu3), libcilkrts5-dbg (>= 7.3.0-16ubuntu3), libmpx2-dbg (>= 7.3.0-16ubuntu3), libquadmath0-dbg (>= 7.3.0-16ubuntu3)
Replaces: cpp-7 (<< 7.1.1-8), gccgo-7 (<< 7.3.0-16ubuntu3)
Filename: pool/main/g/gcc-7/gcc-7_7.3.0-16ubuntu3_amd64.deb
Size: 7444532
MD5sum: 1c20b1c5e5844ad3f7ec5f1eaa53309c
SHA1: d3805cffc3ce54d85144b4bf6841d024964a996e
SHA256: e8d83c288e08da39c5ccd289b550e2097f562bf848480f71f94cebbd187e60da
Homepage: http://gcc.gnu.org/
Description: GNU C compiler
Description-md5: 394374e688b1afb3af5f419895d29698
Build-Essential: yes
Supported: 5y