How to Install and Uninstall g++ Package on Ubuntu 20.10 (Groovy Gorilla)

Last updated: May 17,2024

1. Install "g++" package

Please follow the step by step instructions below to install g++ on Ubuntu 20.10 (Groovy Gorilla)

$ sudo apt update $ sudo apt install g++

2. Uninstall "g++" package

Please follow the steps below to uninstall g++ on Ubuntu 20.10 (Groovy Gorilla):

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

3. Information about the g++ package on Ubuntu 20.10 (Groovy Gorilla)

Package: g++
Architecture: amd64
Version: 4:10.2.0-1ubuntu1
Priority: optional
Section: devel
Source: gcc-defaults (1.189ubuntu1)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian GCC Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 16
Provides: c++-compiler, g++-x86-64-linux-gnu (= 4:10.2.0-1ubuntu1)
Depends: cpp (= 4:10.2.0-1ubuntu1), gcc (= 4:10.2.0-1ubuntu1), g++-10 (>= 10.2.0-8~), gcc-10 (>= 10.2.0-8~)
Suggests: g++-multilib
Filename: pool/main/g/gcc-defaults/g++_10.2.0-1ubuntu1_amd64.deb
Size: 1608
MD5sum: c8c6d051d937c71bc9da252481d062b5
SHA1: ca3c7bad966dfa954c8039bd3f5fe7e32cc54bb7
SHA256: 37343cb736b468e7be4f3e075b441e99b739bba8d0cf968cdaf90bb5733d98b4
SHA512: 071a2ccf0dbad076c532646196423f9875f279d4f467b0829bdaf14487e980f5876f527faa1f0bdd825611fdc4192900f12ee6bb58c6a5cc35858d84dfab9b22
Description-en: GNU C++ compiler
This is the GNU C++ compiler, a fairly portable optimizing compiler for C++.
.
This is a dependency package providing the default GNU C++ compiler.
Description-md5: 4d44b18774ae5123b7c3f70d940cf655
Task: ubuntu-mate-core, ubuntu-mate-desktop
Build-Essential: yes