How to Install and Uninstall gcc-10 Package on Ubuntu 20.04 LTS (Focal Fossa)

Last updated: April 30,2024

1. Install "gcc-10" package

Please follow the instructions below to install gcc-10 on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install gcc-10

2. Uninstall "gcc-10" package

Please follow the guidance below to uninstall gcc-10 on Ubuntu 20.04 LTS (Focal Fossa):

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

3. Information about the gcc-10 package on Ubuntu 20.04 LTS (Focal Fossa)

Package: gcc-10
Architecture: amd64
Version: 10.5.0-1ubuntu1~20.04
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: 52521
Provides: c-compiler
Depends: cpp-10 (= 10.5.0-1ubuntu1~20.04), gcc-10-base (= 10.5.0-1ubuntu1~20.04), libcc1-0 (>= 10.5.0-1ubuntu1~20.04), binutils (>= 2.34), libgcc-10-dev (= 10.5.0-1ubuntu1~20.04), libc6 (>= 2.15), libgcc-s1 (>= 3.0), libgmp10 (>= 2:5.0.1~), libisl22 (>= 0.15), libmpc3, libmpfr6 (>= 3.1.3), libstdc++6 (>= 5), libzstd1 (>= 1.3.2), zlib1g (>= 1:1.1.4)
Recommends: libc6-dev (>= 2.13-0ubuntu6)
Suggests: gcc-10-multilib, gcc-10-doc (>= 10), gcc-10-locales (>= 10)
Replaces: cpp-10 (<< 7.1.1-8)
Filename: pool/universe/g/gcc-10/gcc-10_10.5.0-1ubuntu1~20.04_amd64.deb
Size: 17646804
MD5sum: 68adf3ee2523638f66f2760281e6f01f
SHA1: ac784dd54958df67dabfdce8539970141c6401f6
SHA256: cb987362235a84e00f13586f84fee48b1a7bd59c8207d86a238b25e7e0843271
SHA512: 19209a9b1a3611669a512e89e208d39631acf631a829030f48469f95f8cac718d04159c629d6dedb05aecee7b89c0fb2ab1296d3307eb2a2ed1257060a58fe76
Homepage: http://gcc.gnu.org/
Description: GNU C compiler
Description-md5: 394374e688b1afb3af5f419895d29698

Package: gcc-10
Architecture: amd64
Version: 10-20200411-0ubuntu1
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: 58248
Provides: c-compiler
Depends: cpp-10 (= 10-20200411-0ubuntu1), gcc-10-base (= 10-20200411-0ubuntu1), libcc1-0 (>= 10-20200411-0ubuntu1), binutils (>= 2.34), libgcc-10-dev (= 10-20200411-0ubuntu1), libc6 (>= 2.15), libgcc-s1 (>= 3.0), libgmp10 (>= 2:5.0.1~), libisl22 (>= 0.15), libmpc3, libmpfr6 (>= 3.1.3), libstdc++6 (>= 5), libzstd1 (>= 1.3.2), zlib1g (>= 1:1.1.4)
Recommends: libc6-dev (>= 2.13-0ubuntu6)
Suggests: gcc-10-multilib, gcc-10-doc (>= 10), gcc-10-locales (>= 10)
Replaces: cpp-10 (<< 7.1.1-8)
Filename: pool/universe/g/gcc-10/gcc-10_10-20200411-0ubuntu1_amd64.deb
Size: 16281884
MD5sum: 64b0c3c087c121b8b0bd51e1685ca590
SHA1: 1a1fb89a51d19a3cd3961db5f720cc7bcea88699
SHA256: 999702a152ce5ad245e366679303dfa7b76ce7373db05e0562d624140c8a3eb9
Homepage: http://gcc.gnu.org/
Description: GNU C compiler
Description-md5: 394374e688b1afb3af5f419895d29698