How to Install and Uninstall g++ Package on Linux Mint 20.3 (Una)

Last updated: May 13,2024

1. Install "g++" package

This is a short guide on how to install g++ on Linux Mint 20.3 (Una)

$ sudo apt update $ sudo apt install g++

2. Uninstall "g++" package

In this section, we are going to explain the necessary steps to uninstall g++ on Linux Mint 20.3 (Una):

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

3. Information about the g++ package on Linux Mint 20.3 (Una)

Package: g++
Architecture: amd64
Version: 4:9.3.0-1ubuntu2
Priority: optional
Section: devel
Source: gcc-defaults (1.185.1ubuntu2)
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:9.3.0-1ubuntu2)
Depends: cpp (= 4:9.3.0-1ubuntu2), gcc (= 4:9.3.0-1ubuntu2), g++-9 (>= 9.3.0-3~), gcc-9 (>= 9.3.0-3~)
Suggests: g++-multilib
Filename: pool/main/g/gcc-defaults/g++_9.3.0-1ubuntu2_amd64.deb
Size: 1604
MD5sum: a71faf81074613648ba94677fc2b67f3
SHA1: a75a2f9d5e35da11428145410b1e5fb1dac4c2c6
SHA256: c613719f24d30e87ed196f27a324a6820032675759330772a1e6620c7662840e
Description: GNU C++ compiler
Description-md5: 4d44b18774ae5123b7c3f70d940cf655
Task: ubuntu-mate-core, ubuntu-mate-desktop
Build-Essential: yes