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

Last updated: October 06,2024

1. Install "g++-10" package

Please follow the guidance below to install g++-10 on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install g++-10

2. Uninstall "g++-10" package

This guide covers the steps necessary to uninstall g++-10 on Ubuntu 20.04 LTS (Focal Fossa):

$ sudo apt remove g++-10 $ sudo apt autoclean && sudo apt autoremove

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

Package: g++-10
Architecture: amd64
Version: 10.5.0-1ubuntu1~20.04
Priority: optional
Section: universe/devel
Source: gcc-10
Origin: Ubuntu
Maintainer: Ubuntu Core developers
Original-Maintainer: Debian GCC Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 28298
Provides: c++-compiler, c++abi2-dev
Depends: gcc-10-base (= 10.5.0-1ubuntu1~20.04), gcc-10 (= 10.5.0-1ubuntu1~20.04), libstdc++-10-dev (= 10.5.0-1ubuntu1~20.04), libc6 (>= 2.14), libgmp10 (>= 2:5.0.1~), libisl22 (>= 0.15), libmpc3, libmpfr6 (>= 3.1.3), libzstd1 (>= 1.3.2), zlib1g (>= 1:1.1.4)
Suggests: g++-10-multilib, gcc-10-doc (>= 10)
Filename: pool/universe/g/gcc-10/g++-10_10.5.0-1ubuntu1~20.04_amd64.deb
Size: 9873064
MD5sum: 94630d4e32e5e36b436345e264c0cb65
SHA1: 7ec9d12a58963ebc6351e420034d856041d8e529
SHA256: 97107e42e3f0864811c809c8c3b7251af6c971395338f9ea8d58d916f724df95
SHA512: 448e91673d14f1ed440e317a3017f1d23c5c560dd6847c520f16c7aa76c93cb85152e41b214f412a3859d17146afd3c378aea57a63a76ff2af6ccfb0e44a3d9e
Homepage: http://gcc.gnu.org/
Description: GNU C++ compiler
Description-md5: 0a3fad3367cb994bd16c61b0e16a8b9c

Package: g++-10
Architecture: amd64
Version: 10-20200411-0ubuntu1
Priority: optional
Section: universe/devel
Source: gcc-10
Origin: Ubuntu
Maintainer: Ubuntu Core developers
Original-Maintainer: Debian GCC Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 30367
Provides: c++-compiler, c++abi2-dev
Depends: gcc-10-base (= 10-20200411-0ubuntu1), gcc-10 (= 10-20200411-0ubuntu1), libstdc++-10-dev (= 10-20200411-0ubuntu1), libc6 (>= 2.14), libgmp10 (>= 2:5.0.1~), libisl22 (>= 0.15), libmpc3, libmpfr6 (>= 3.1.3), libzstd1 (>= 1.3.2), zlib1g (>= 1:1.1.4)
Suggests: g++-10-multilib, gcc-10-doc (>= 10)
Filename: pool/universe/g/gcc-10/g++-10_10-20200411-0ubuntu1_amd64.deb
Size: 9033516
MD5sum: 47767dd6047abeb8fc4b524327fad35b
SHA1: 3d6665f6f85c4af29d197c8b05090570e92032b3
SHA256: 2fc09280fa0ecc6f7f8ebfbf6f88110128fb0f0fb82309d88d5aa8c99dcee2ac
Homepage: http://gcc.gnu.org/
Description: GNU C++ compiler
Description-md5: 0a3fad3367cb994bd16c61b0e16a8b9c