How to Install and Uninstall gcc-7 Package on Ubuntu 20.04 LTS (Focal Fossa)
Last updated: November 26,2024
1. Install "gcc-7" package
This tutorial shows how to install gcc-7 on Ubuntu 20.04 LTS (Focal Fossa)
$
sudo apt update
Copied
$
sudo apt install
gcc-7
Copied
2. Uninstall "gcc-7" package
This guide let you learn how to uninstall gcc-7 on Ubuntu 20.04 LTS (Focal Fossa):
$
sudo apt remove
gcc-7
Copied
$
sudo apt autoclean && sudo apt autoremove
Copied
3. Information about the gcc-7 package on Ubuntu 20.04 LTS (Focal Fossa)
Package: gcc-7
Architecture: amd64
Version: 7.5.0-6ubuntu2
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: 27369
Provides: c-compiler
Depends: cpp-7 (= 7.5.0-6ubuntu2), gcc-7-base (= 7.5.0-6ubuntu2), libcc1-0 (>= 7.5.0-6ubuntu2), binutils (>= 2.34), libgcc-7-dev (= 7.5.0-6ubuntu2), 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-6ubuntu2)
Filename: pool/universe/g/gcc-7/gcc-7_7.5.0-6ubuntu2_amd64.deb
Size: 9380888
MD5sum: 9c5ccb085178c4c87d6c393e89c6bc2b
SHA1: 534103c4c93fe9eb19548a2ad39fc4e5d148b2d9
SHA256: b0b78fac85eb2283d50cbcba39c90e5836921d52cc56170144c22eba621cf214
Homepage: http://gcc.gnu.org/
Description: GNU C compiler
Description-md5: 394374e688b1afb3af5f419895d29698
Architecture: amd64
Version: 7.5.0-6ubuntu2
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: 27369
Provides: c-compiler
Depends: cpp-7 (= 7.5.0-6ubuntu2), gcc-7-base (= 7.5.0-6ubuntu2), libcc1-0 (>= 7.5.0-6ubuntu2), binutils (>= 2.34), libgcc-7-dev (= 7.5.0-6ubuntu2), 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-6ubuntu2)
Filename: pool/universe/g/gcc-7/gcc-7_7.5.0-6ubuntu2_amd64.deb
Size: 9380888
MD5sum: 9c5ccb085178c4c87d6c393e89c6bc2b
SHA1: 534103c4c93fe9eb19548a2ad39fc4e5d148b2d9
SHA256: b0b78fac85eb2283d50cbcba39c90e5836921d52cc56170144c22eba621cf214
Homepage: http://gcc.gnu.org/
Description: GNU C compiler
Description-md5: 394374e688b1afb3af5f419895d29698