How to Install and Uninstall g++-11 Package on Debian 12 (Bookworm)

Last updated: May 09,2024

1. Install "g++-11" package

Please follow the guidance below to install g++-11 on Debian 12 (Bookworm)

$ sudo apt update $ sudo apt install g++-11

2. Uninstall "g++-11" package

This is a short guide on how to uninstall g++-11 on Debian 12 (Bookworm):

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

3. Information about the g++-11 package on Debian 12 (Bookworm)

Package: g++-11
Source: gcc-11
Version: 11.3.0-12
Installed-Size: 28258
Maintainer: Debian GCC Maintainers
Architecture: amd64
Provides: c++-compiler, c++abi2-dev
Depends: gcc-11-base (= 11.3.0-12), gcc-11 (= 11.3.0-12), libstdc++-11-dev (= 11.3.0-12), libc6 (>= 2.34), libgmp10 (>= 2:6.2.1+dfsg1), libisl23 (>= 0.15), libmpc3 (>= 1.1.0), libmpfr6 (>= 3.1.3), libzstd1 (>= 1.5.2), zlib1g (>= 1:1.1.4)
Suggests: g++-11-multilib, gcc-11-doc (>= 11)
Description: GNU C++ compiler
Description-md5: 0a3fad3367cb994bd16c61b0e16a8b9c
Homepage: http://gcc.gnu.org/
Section: devel
Priority: optional
Filename: pool/main/g/gcc-11/g++-11_11.3.0-12_amd64.deb
Size: 10189352
MD5sum: faf61e95cd64913fe55e4f1c19f94404
SHA256: 4ccab3ebfb3edd0c32a5f7abe98fcb1865e52c369418fe468c1f793e5ccda1f5