How to Install and Uninstall g++-7 Package on Ubuntu 18.04 LTS (Bionic Beaver)
Last updated: November 25,2024
1. Install "g++-7" package
This tutorial shows how to install g++-7 on Ubuntu 18.04 LTS (Bionic Beaver)
$
sudo apt update
Copied
$
sudo apt install
g++-7
Copied
2. Uninstall "g++-7" package
Please follow the guidance below to uninstall g++-7 on Ubuntu 18.04 LTS (Bionic Beaver):
$
sudo apt remove
g++-7
Copied
$
sudo apt autoclean && sudo apt autoremove
Copied
3. Information about the g++-7 package on Ubuntu 18.04 LTS (Bionic Beaver)
Package: g++-7
Architecture: amd64
Version: 7.5.0-3ubuntu1~18.04
Priority: optional
Section: devel
Source: gcc-7
Origin: Ubuntu
Maintainer: Ubuntu Core developers
Original-Maintainer: Debian GCC Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 26062
Provides: c++-compiler, c++abi2-dev
Depends: gcc-7-base (= 7.5.0-3ubuntu1~18.04), gcc-7 (= 7.5.0-3ubuntu1~18.04), libstdc++-7-dev (= 7.5.0-3ubuntu1~18.04), libc6 (>= 2.14), libgmp10 (>= 2:5.0.1~), libisl19 (>= 0.15), libmpc3, libmpfr6 (>= 3.1.3), zlib1g (>= 1:1.1.4)
Suggests: g++-7-multilib, gcc-7-doc (>= 7), libstdc++6-7-dbg (>= 7.5.0-3ubuntu1~18.04)
Filename: pool/main/g/gcc-7/g++-7_7.5.0-3ubuntu1~18.04_amd64.deb
Size: 9697404
MD5sum: bf22ac74d6078e9277c56ad4c61a4afd
SHA1: b17a170657b4d32b0108f77c1c86c27256ebf961
SHA256: 1ba415a38d09c2b3c16c063372f4cfb381e6bcd2cc919468953e28d785e96f04
SHA512: 60936b4a7b13ec924742322e52caac01d143ed2e703a181f46d39a8baf7f98265a200da34a30bcfa742685423cf9a119466d33d6104eaac30b6a329a467cc32b
Homepage: http://gcc.gnu.org/
Description: GNU C++ compiler
Description-md5: 0a3fad3367cb994bd16c61b0e16a8b9c
Build-Essential: yes
Supported: 5y
Package: g++-7
Architecture: amd64
Version: 7.3.0-16ubuntu3
Priority: optional
Section: devel
Source: gcc-7
Origin: Ubuntu
Maintainer: Ubuntu Core developers
Original-Maintainer: Debian GCC Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 24349
Provides: c++-compiler, c++abi2-dev
Depends: gcc-7-base (= 7.3.0-16ubuntu3), gcc-7 (= 7.3.0-16ubuntu3), libstdc++-7-dev (= 7.3.0-16ubuntu3), libc6 (>= 2.14), libgmp10 (>= 2:5.0.1~), libisl19 (>= 0.15), libmpc3, libmpfr6 (>= 3.1.3), zlib1g (>= 1:1.1.4)
Suggests: g++-7-multilib, gcc-7-doc (>= 7), libstdc++6-7-dbg (>= 7.3.0-16ubuntu3)
Filename: pool/main/g/gcc-7/g++-7_7.3.0-16ubuntu3_amd64.deb
Size: 7565960
MD5sum: fad9d9ce547557248e1f86002687208e
SHA1: 194c6c5f50cabd7cd8d5680143a6335224ee1abe
SHA256: 4d86e1a5fd43fa358ca031c270b5f1cca30cd454aaf39de7d5dda4a6651d53ad
Homepage: http://gcc.gnu.org/
Description: GNU C++ compiler
Description-md5: 0a3fad3367cb994bd16c61b0e16a8b9c
Build-Essential: yes
Supported: 5y
Architecture: amd64
Version: 7.5.0-3ubuntu1~18.04
Priority: optional
Section: devel
Source: gcc-7
Origin: Ubuntu
Maintainer: Ubuntu Core developers
Original-Maintainer: Debian GCC Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 26062
Provides: c++-compiler, c++abi2-dev
Depends: gcc-7-base (= 7.5.0-3ubuntu1~18.04), gcc-7 (= 7.5.0-3ubuntu1~18.04), libstdc++-7-dev (= 7.5.0-3ubuntu1~18.04), libc6 (>= 2.14), libgmp10 (>= 2:5.0.1~), libisl19 (>= 0.15), libmpc3, libmpfr6 (>= 3.1.3), zlib1g (>= 1:1.1.4)
Suggests: g++-7-multilib, gcc-7-doc (>= 7), libstdc++6-7-dbg (>= 7.5.0-3ubuntu1~18.04)
Filename: pool/main/g/gcc-7/g++-7_7.5.0-3ubuntu1~18.04_amd64.deb
Size: 9697404
MD5sum: bf22ac74d6078e9277c56ad4c61a4afd
SHA1: b17a170657b4d32b0108f77c1c86c27256ebf961
SHA256: 1ba415a38d09c2b3c16c063372f4cfb381e6bcd2cc919468953e28d785e96f04
SHA512: 60936b4a7b13ec924742322e52caac01d143ed2e703a181f46d39a8baf7f98265a200da34a30bcfa742685423cf9a119466d33d6104eaac30b6a329a467cc32b
Homepage: http://gcc.gnu.org/
Description: GNU C++ compiler
Description-md5: 0a3fad3367cb994bd16c61b0e16a8b9c
Build-Essential: yes
Supported: 5y
Package: g++-7
Architecture: amd64
Version: 7.3.0-16ubuntu3
Priority: optional
Section: devel
Source: gcc-7
Origin: Ubuntu
Maintainer: Ubuntu Core developers
Original-Maintainer: Debian GCC Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 24349
Provides: c++-compiler, c++abi2-dev
Depends: gcc-7-base (= 7.3.0-16ubuntu3), gcc-7 (= 7.3.0-16ubuntu3), libstdc++-7-dev (= 7.3.0-16ubuntu3), libc6 (>= 2.14), libgmp10 (>= 2:5.0.1~), libisl19 (>= 0.15), libmpc3, libmpfr6 (>= 3.1.3), zlib1g (>= 1:1.1.4)
Suggests: g++-7-multilib, gcc-7-doc (>= 7), libstdc++6-7-dbg (>= 7.3.0-16ubuntu3)
Filename: pool/main/g/gcc-7/g++-7_7.3.0-16ubuntu3_amd64.deb
Size: 7565960
MD5sum: fad9d9ce547557248e1f86002687208e
SHA1: 194c6c5f50cabd7cd8d5680143a6335224ee1abe
SHA256: 4d86e1a5fd43fa358ca031c270b5f1cca30cd454aaf39de7d5dda4a6651d53ad
Homepage: http://gcc.gnu.org/
Description: GNU C++ compiler
Description-md5: 0a3fad3367cb994bd16c61b0e16a8b9c
Build-Essential: yes
Supported: 5y