How to Install and Uninstall g++-10 Package on Ubuntu 21.04 (Hirsute Hippo)

Last updated: April 19,2024

1. Install "g++-10" package

This guide let you learn how to install g++-10 on Ubuntu 21.04 (Hirsute Hippo)

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

2. Uninstall "g++-10" package

This tutorial shows how to uninstall g++-10 on Ubuntu 21.04 (Hirsute Hippo):

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

3. Information about the g++-10 package on Ubuntu 21.04 (Hirsute Hippo)

Package: g++-10
Architecture: amd64
Version: 10.3.0-1ubuntu1
Priority: optional
Section: devel
Source: gcc-10
Origin: Ubuntu
Maintainer: Ubuntu Core developers
Original-Maintainer: Debian GCC Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 28103
Provides: c++-compiler, c++abi2-dev
Depends: gcc-10-base (= 10.3.0-1ubuntu1), gcc-10 (= 10.3.0-1ubuntu1), libstdc++-10-dev (= 10.3.0-1ubuntu1), libc6 (>= 2.33), libgmp10 (>= 2:5.0.1~), libisl23 (>= 0.15), libmpc3 (>= 1.1.0), libmpfr6 (>= 3.1.3), libzstd1 (>= 1.3.2), zlib1g (>= 1:1.1.4)
Suggests: g++-10-multilib, gcc-10-doc (>= 10)
Filename: pool/main/g/gcc-10/g++-10_10.3.0-1ubuntu1_amd64.deb
Size: 9803276
MD5sum: f071fb07f886b2a3c8d48e0b147e43a4
SHA1: 894054067516aa423dc9ca4044ae67805fcb4252
SHA256: b53f15530f559f94121cf882bf52610c31fa2ccf532fb4a8cee96a6008cf0d60
SHA512: 588b8149d4aee9c8be7e656600c25d6aa45b3a1a0c62d6d3236b89c6e91461c4ed4fe297634ce185cc0f6beff1b98e3eca095340f51f1456dd987557e67968b8
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: 0a3fad3367cb994bd16c61b0e16a8b9c
Task: ubuntustudio-video, ubuntu-mate-core, ubuntu-mate-desktop
Build-Essential: yes