How to Install and Uninstall gcc-11 Package on Ubuntu 21.04 (Hirsute Hippo)

Last updated: May 20,2024

1. Install "gcc-11" package

Please follow the instructions below to install gcc-11 on Ubuntu 21.04 (Hirsute Hippo)

$ sudo apt update $ sudo apt install gcc-11

2. Uninstall "gcc-11" package

Learn how to uninstall gcc-11 on Ubuntu 21.04 (Hirsute Hippo):

$ sudo apt remove gcc-11 $ sudo apt autoclean && sudo apt autoremove

3. Information about the gcc-11 package on Ubuntu 21.04 (Hirsute Hippo)

Package: gcc-11
Architecture: amd64
Version: 11.1.0-1ubuntu1~21.04
Priority: optional
Section: universe/devel
Origin: Ubuntu
Maintainer: Ubuntu Core developers
Original-Maintainer: Debian GCC Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 52388
Provides: c-compiler
Depends: cpp-11 (= 11.1.0-1ubuntu1~21.04), gcc-11-base (= 11.1.0-1ubuntu1~21.04), libcc1-0 (>= 11.1.0-1ubuntu1~21.04), binutils (>= 2.36.1), libgcc-11-dev (= 11.1.0-1ubuntu1~21.04), libc6 (>= 2.33), libgcc-s1 (>= 3.0), libgmp10 (>= 2:5.0.1~), libisl23 (>= 0.15), libmpc3 (>= 1.1.0), libmpfr6 (>= 3.1.3), libstdc++6 (>= 5), libzstd1 (>= 1.3.2), zlib1g (>= 1:1.1.4)
Recommends: libc6-dev (>= 2.13-0ubuntu6)
Suggests: gcc-11-multilib, gcc-11-doc (>= 11), gcc-11-locales (>= 11)
Replaces: cpp-11 (<< 7.1.1-8)
Filename: pool/universe/g/gcc-11/gcc-11_11.1.0-1ubuntu1~21.04_amd64.deb
Size: 18519484
MD5sum: ed97bfbf65f4e3b21dd7e2410047eb73
SHA1: a24e5f3fcb859f91ec658b766c56aee5a8534cad
SHA256: 7551febafe8a8c320d1f38fac9a84a03ae50a41f9e805c7b6b5fa0f64b31a9f0
SHA512: 77ba7e8425a5df8e2889e3943a47544b3dde44cad63580e6dd0c51df1bd3636067e2e88c82f6ee19103ec7cadf2c6a70e550ebe063b0cfd89d891a535fc175c6
Homepage: http://gcc.gnu.org/
Description-en: GNU C compiler
This is the GNU C compiler, a fairly portable optimizing compiler for C.
Description-md5: 394374e688b1afb3af5f419895d29698

Package: gcc-11
Architecture: amd64
Version: 11-20210417-1ubuntu1
Priority: optional
Section: universe/devel
Origin: Ubuntu
Maintainer: Ubuntu Core developers
Original-Maintainer: Debian GCC Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 199429
Provides: c-compiler
Depends: cpp-11 (= 11-20210417-1ubuntu1), gcc-11-base (= 11-20210417-1ubuntu1), libcc1-0 (>= 11-20210417-1ubuntu1), binutils (>= 2.36.1), libgcc-11-dev (= 11-20210417-1ubuntu1), libc6 (>= 2.33), libgcc-s1 (>= 3.0), libgmp10 (>= 2:5.0.1~), libisl23 (>= 0.15), libmpc3 (>= 1.1.0), libmpfr6 (>= 3.1.3), libstdc++6 (>= 5), libzstd1 (>= 1.3.2), zlib1g (>= 1:1.1.4)
Recommends: libc6-dev (>= 2.13-0ubuntu6)
Suggests: gcc-11-multilib, gcc-11-doc (>= 11), gcc-11-locales (>= 11)
Replaces: cpp-11 (<< 7.1.1-8)
Filename: pool/universe/g/gcc-11/gcc-11_11-20210417-1ubuntu1_amd64.deb
Size: 54169016
MD5sum: 854eea78496de76c689ea5c6414d9cfd
SHA1: 0ee86cce13546a2bae6e7261087d8152f810d3bc
SHA256: a5f6182c347ca2243d10dbe3d8dae4194530bcc6a0cb2be904a1e62640a9e135
SHA512: 99f88999e91549891f7ca37bb5a680b1cce10efa82a5cfcf0b478e4bf0f0832a1e6b52f47035bf182f691b553384010caa51469af7354d31fe4a7d748d6d38a1
Homepage: http://gcc.gnu.org/
Description-en: GNU C compiler
This is the GNU C compiler, a fairly portable optimizing compiler for C.
Description-md5: 394374e688b1afb3af5f419895d29698