How to Install and Uninstall gcc-7 Package on Ubuntu 20.10 (Groovy Gorilla)

Last updated: May 15,2024

1. Install "gcc-7" package

Please follow the steps below to install gcc-7 on Ubuntu 20.10 (Groovy Gorilla)

$ sudo apt update $ sudo apt install gcc-7

2. Uninstall "gcc-7" package

In this section, we are going to explain the necessary steps to uninstall gcc-7 on Ubuntu 20.10 (Groovy Gorilla):

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

3. Information about the gcc-7 package on Ubuntu 20.10 (Groovy Gorilla)

Package: gcc-7
Architecture: amd64
Version: 7.5.0-6ubuntu3
Priority: optional
Section: universe/devel
Origin: Ubuntu
Maintainer: Ubuntu Core developers
Original-Maintainer: Debian GCC Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 27429
Provides: c-compiler
Depends: cpp-7 (= 7.5.0-6ubuntu3), gcc-7-base (= 7.5.0-6ubuntu3), libcc1-0 (>= 7.5.0-6ubuntu3), binutils (>= 2.34), libgcc-7-dev (= 7.5.0-6ubuntu3), libc6 (>= 2.15), libgcc-s1 (>= 3.0), libgmp10 (>= 2:5.0.1~), libisl22 (>= 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)
Replaces: cpp-7 (<< 7.1.1-8), gccgo-7 (<< 7.5.0-6ubuntu3)
Filename: pool/universe/g/gcc-7/gcc-7_7.5.0-6ubuntu3_amd64.deb
Size: 9410628
MD5sum: 91faac32473c56585ee2ff5411a33d37
SHA1: 25a24c8d8071d3809826b736580d9d709e19745a
SHA256: 6210708f5d404ccf72776706ccfcdda54ce18cd4a4cfded42265f08cdbd0f917
SHA512: 3eaa2c8863f6db5fc9ae7bdcb46b573ece28d0191daf009f3e5cae4eb588acba479dda69b0f5c4d60813603e401158c7bd0adb90f1ad6efe3f2466d83a87c648
Homepage: http://gcc.gnu.org/
Description-en: GNU C compiler
This is the GNU C compiler, a fairly portable optimizing compiler for C.
Description-md5: 394374e688b1afb3af5f419895d29698