How to Install and Uninstall g++ Package on Ubuntu 21.10 (Impish Indri)
Last updated: November 27,2024
1. Install "g++" package
This guide covers the steps necessary to install g++ on Ubuntu 21.10 (Impish Indri)
$
sudo apt update
Copied
$
sudo apt install
g++
Copied
2. Uninstall "g++" package
Learn how to uninstall g++ on Ubuntu 21.10 (Impish Indri):
$
sudo apt remove
g++
Copied
$
sudo apt autoclean && sudo apt autoremove
Copied
3. Information about the g++ package on Ubuntu 21.10 (Impish Indri)
Package: g++
Architecture: amd64
Version: 4:11.2.0-1ubuntu1
Priority: optional
Section: devel
Source: gcc-defaults (1.193ubuntu1)
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:11.2.0-1ubuntu1)
Depends: cpp (= 4:11.2.0-1ubuntu1), gcc (= 4:11.2.0-1ubuntu1), g++-11 (>= 11.2.0-1~), gcc-11 (>= 11.2.0-1~)
Suggests: g++-multilib
Filename: pool/main/g/gcc-defaults/g++_11.2.0-1ubuntu1_amd64.deb
Size: 1412
MD5sum: 127337edec010d07a97edc6e40d99fee
SHA1: 882f7a2a389a829715aad77774b752fa4feb92c1
SHA256: 693080e6d1648f521183c1fa5fcfdd2d357a87f5872511ec12792d9dfe1effdb
SHA512: a5153251990f554fd7891fe974ea602cf00f0a800542bedc2db1386122112d009d0d2b664103fdc7ce90651b9450b423bd7de82ee2ffd1c6b20864276c19e85a
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: ubuntustudio-video, ubuntu-mate-core, ubuntu-mate-desktop
Build-Essential: yes
Architecture: amd64
Version: 4:11.2.0-1ubuntu1
Priority: optional
Section: devel
Source: gcc-defaults (1.193ubuntu1)
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:11.2.0-1ubuntu1)
Depends: cpp (= 4:11.2.0-1ubuntu1), gcc (= 4:11.2.0-1ubuntu1), g++-11 (>= 11.2.0-1~), gcc-11 (>= 11.2.0-1~)
Suggests: g++-multilib
Filename: pool/main/g/gcc-defaults/g++_11.2.0-1ubuntu1_amd64.deb
Size: 1412
MD5sum: 127337edec010d07a97edc6e40d99fee
SHA1: 882f7a2a389a829715aad77774b752fa4feb92c1
SHA256: 693080e6d1648f521183c1fa5fcfdd2d357a87f5872511ec12792d9dfe1effdb
SHA512: a5153251990f554fd7891fe974ea602cf00f0a800542bedc2db1386122112d009d0d2b664103fdc7ce90651b9450b423bd7de82ee2ffd1c6b20864276c19e85a
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: ubuntustudio-video, ubuntu-mate-core, ubuntu-mate-desktop
Build-Essential: yes