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

Last updated: November 26,2024

1. Install "gcc" package

Please follow the guidance below to install gcc on Ubuntu 21.04 (Hirsute Hippo)

$ sudo apt update $ sudo apt install gcc

2. Uninstall "gcc" package

In this section, we are going to explain the necessary steps to uninstall gcc on Ubuntu 21.04 (Hirsute Hippo):

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

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

Package: gcc
Architecture: amd64
Version: 4:10.3.0-1ubuntu1
Priority: optional
Section: devel
Source: gcc-defaults (1.190ubuntu1)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian GCC Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 50
Provides: c-compiler, gcc-x86-64-linux-gnu (= 4:10.3.0-1ubuntu1)
Depends: cpp (= 4:10.3.0-1ubuntu1), gcc-10 (>= 10.3.0-1~)
Recommends: libc6-dev | libc-dev
Suggests: gcc-multilib, make, manpages-dev, autoconf, automake, libtool, flex, bison, gdb, gcc-doc
Conflicts: gcc-doc (<< 1:2.95.3)
Filename: pool/main/g/gcc-defaults/gcc_10.3.0-1ubuntu1_amd64.deb
Size: 5212
MD5sum: 427c3cc1d7d20e04ce324b2ba50ef313
SHA1: c1bf1c5bfdd380c9691b76ef42c3e3ec9e238cb4
SHA256: 4ddc868acfcad15c85bc7c3a8e27cd4aa17eca0d8df019451d204a0327ca8e0a
SHA512: 3ea3d8931d93147cf12eb12397bb5b5d48ba3f15472b2c4c0a3b27d2645d6a56f467633ceacd22aeeb5eea8657a47765f2fa3b1f9629a25f974b7e864d34ca5b
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: c7efd71c7c651a9ac8b2adf36b137790
Task: ubuntustudio-video, ubuntu-mate-core, ubuntu-mate-desktop
Build-Essential: yes