How to Install and Uninstall gcc Package on Ubuntu 24.04 LTS (Noble Numbat)

Last updated: May 02,2024

1. Install "gcc" package

In this section, we are going to explain the necessary steps to install gcc on Ubuntu 24.04 LTS (Noble Numbat)

$ sudo apt update $ sudo apt install gcc

2. Uninstall "gcc" package

Please follow the step by step instructions below to uninstall gcc on Ubuntu 24.04 LTS (Noble Numbat):

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

3. Information about the gcc package on Ubuntu 24.04 LTS (Noble Numbat)

Package: gcc
Architecture: amd64
Version: 4:13.2.0-7ubuntu1
Priority: optional
Build-Essential: yes
Section: devel
Source: gcc-defaults (1.214ubuntu1)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian GCC Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 37
Provides: c-compiler
Depends: cpp (= 4:13.2.0-7ubuntu1), cpp-x86-64-linux-gnu (= 4:13.2.0-7ubuntu1), gcc-13 (>= 13.2.0-11~), gcc-x86-64-linux-gnu (= 4:13.2.0-7ubuntu1)
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_13.2.0-7ubuntu1_amd64.deb
Size: 5018
MD5sum: 7799273d32d97051db0f5e19922b1ca1
SHA1: b6150fa125f72cb4def0019856f47547f6729477
SHA256: 0e0bb8b25153ed1c44ab92bc219eed469fcb5820c5c0bc6454b2fd366a33d3ee
SHA512: c9c4d8ae24c8f4874fa683cd4d8ce838f535fa93f0fe3c62a4a5756c7f67cda3aa54b2f06fc93f0e16043dbaa492991d4021c399b416484d23fea5adb2331fa8
Description: GNU C compiler
Description-md5: c7efd71c7c651a9ac8b2adf36b137790
Task: ubuntustudio-publishing, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-unity-desktop, edubuntu-desktop-gnome-minimal, edubuntu-desktop-gnome, edubuntu-desktop-gnome-raspi, ubuntucinnamon-desktop, ubuntucinnamon-desktop-minimal