How to Install and Uninstall g++ Package on Ubuntu 18.04 LTS (Bionic Beaver)

Last updated: November 25,2024

1. Install "g++" package

Learn how to install g++ on Ubuntu 18.04 LTS (Bionic Beaver)

$ sudo apt update $ sudo apt install g++

2. Uninstall "g++" package

This guide covers the steps necessary to uninstall g++ on Ubuntu 18.04 LTS (Bionic Beaver):

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

3. Information about the g++ package on Ubuntu 18.04 LTS (Bionic Beaver)

Package: g++
Architecture: amd64
Version: 4:7.4.0-1ubuntu2.3
Priority: optional
Section: devel
Source: gcc-defaults (1.176ubuntu2.3)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian GCC Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 16
Provides: c++-compiler
Depends: cpp (>= 4:7.4.0-1ubuntu2.3), gcc (>= 4:7.4.0-1ubuntu2.3), g++-7 (>= 7.4.0-1~), gcc-7 (>= 7.4.0-1~)
Suggests: g++-multilib
Filename: pool/main/g/gcc-defaults/g++_7.4.0-1ubuntu2.3_amd64.deb
Size: 1568
MD5sum: 7545b3902fd42dcb4cba6bcd1347cfd4
SHA1: e41dd4b8763c6ca478ab0b924368881c0beae3e7
SHA256: c261a5555d623e38d9ff42bac9f78610dce44eec95dc78fb7e81961fb33d4401
SHA512: 3cc828da65a20201fd726103fc3b4127e4069f5efca1ba076253a2d53372e0af0af44609a00d0ad9fe053113fc994a85232cb168b82b510bc7c6e80eda35a8d0
Description: GNU C++ compiler
Description-md5: 4d44b18774ae5123b7c3f70d940cf655
Build-Essential: yes
Supported: 5y

Package: g++
Architecture: amd64
Version: 4:7.3.0-3ubuntu2
Priority: optional
Section: devel
Source: gcc-defaults (1.176ubuntu2)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian GCC Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 16
Provides: c++-compiler
Depends: cpp (>= 4:7.3.0-3ubuntu2), gcc (>= 4:7.3.0-3ubuntu2), g++-7 (>= 7.3.0-12~), gcc-7 (>= 7.3.0-12~)
Suggests: g++-multilib
Filename: pool/main/g/gcc-defaults/g++_7.3.0-3ubuntu2_amd64.deb
Size: 1576
MD5sum: 4593ebeb6cdfcd6d85d804a399e66104
SHA1: 98d89e48ca219bdee6f7d618a1a36db703bd3ac0
SHA256: 633146417b005db8e437520fbfd0ddec43fd50e29f3ffd2089cde966a2b10ce2
Description: GNU C++ compiler
Description-md5: 4d44b18774ae5123b7c3f70d940cf655
Build-Essential: yes
Supported: 5y