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

Last updated: November 26,2024

1. Install "g++-7" package

In this section, we are going to explain the necessary steps to install g++-7 on Ubuntu 21.04 (Hirsute Hippo)

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

2. Uninstall "g++-7" package

Please follow the guidance below to uninstall g++-7 on Ubuntu 21.04 (Hirsute Hippo):

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

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

Package: g++-7
Architecture: amd64
Version: 7.5.0-6ubuntu4
Priority: optional
Section: universe/devel
Source: gcc-7
Origin: Ubuntu
Maintainer: Ubuntu Core developers
Original-Maintainer: Debian GCC Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 26134
Provides: c++-compiler, c++abi2-dev
Depends: gcc-7-base (= 7.5.0-6ubuntu4), gcc-7 (= 7.5.0-6ubuntu4), libstdc++-7-dev (= 7.5.0-6ubuntu4), libc6 (>= 2.14), libgmp10 (>= 2:5.0.1~), libisl23 (>= 0.15), libmpc3 (>= 1.1.0), libmpfr6 (>= 3.1.3), zlib1g (>= 1:1.1.4)
Suggests: g++-7-multilib, gcc-7-doc (>= 7)
Filename: pool/universe/g/gcc-7/g++-7_7.5.0-6ubuntu4_amd64.deb
Size: 9726932
MD5sum: 459e93de8130f3eb92e7acb5764bb462
SHA1: 25139a35842f83676ae37b50f5e25e6051c3dc63
SHA256: 7e392c344328b181e8a1e4040a9109480cd211aae2dd92aaf7825b93fa696164
SHA512: adfd0659500782e6525713faa725832d363278342edda0bc1fd33285f9fa8d329276ce30fa318cd2ab861dbfffbfc2f32af4b05b0ec9d682e85f1bb577f5db23
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