How to Install and Uninstall g++ Package on Debian 11 (Bullseye)

Last updated: November 23,2024

1. Install "g++" package

This tutorial shows how to install g++ on Debian 11 (Bullseye)

$ sudo apt update $ sudo apt install g++

2. Uninstall "g++" package

Learn how to uninstall g++ on Debian 11 (Bullseye):

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

3. Information about the g++ package on Debian 11 (Bullseye)

Package: g++
Source: gcc-defaults (1.190)
Version: 4:10.2.1-1
Installed-Size: 15
Maintainer: Debian GCC Maintainers
Architecture: amd64
Provides: c++-compiler, g++-x86-64-linux-gnu (= 4:10.2.1-1)
Depends: cpp (= 4:10.2.1-1), gcc (= 4:10.2.1-1), g++-10 (>= 10.2.1-3~), gcc-10 (>= 10.2.1-3~)
Suggests: g++-multilib
Description: GNU C++ compiler
Description-md5: 4d44b18774ae5123b7c3f70d940cf655
Build-Essential: yes
Tag: devel::compiler, devel::lang:c, devel::lang:c++, devel::library,
implemented-in::c, interface::commandline, role::devel-lib,
role::dummy, role::metapackage, role::program, suite::gnu,
works-with::software:source
Section: devel
Priority: optional
Filename: pool/main/g/gcc-defaults/g++_10.2.1-1_amd64.deb
Size: 1644
MD5sum: 41e1caa91fa68274eab2d94b32e4d423
SHA256: 40d45cf1d877a306f71d0eff6c0b79469364b52215a1d23cf9a6d8698a1890b4