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

Last updated: May 17,2024

1. Install "gcc-for-host" package

Here is a brief guide to show you how to install gcc-for-host on Ubuntu 24.04 LTS (Noble Numbat)

$ sudo apt update $ sudo apt install gcc-for-host

2. Uninstall "gcc-for-host" package

Please follow the guidance below to uninstall gcc-for-host on Ubuntu 24.04 LTS (Noble Numbat):

$ sudo apt remove gcc-for-host $ sudo apt autoclean && sudo apt autoremove

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

Package: gcc-for-host
Architecture: amd64
Version: 4:13.2.0-7ubuntu1
Multi-Arch: same
Priority: optional
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: 6
Depends: gcc-x86-64-linux-gnu (= 4:13.2.0-7ubuntu1), cpp-x86-64-linux-gnu (= 4:13.2.0-7ubuntu1), cpp-for-host (= 4:13.2.0-7ubuntu1), gcc-13-for-host (>= 13.2.0-11~)
Recommends: libc6-dev | libc-dev
Filename: pool/main/g/gcc-defaults/gcc-for-host_13.2.0-7ubuntu1_amd64.deb
Size: 924
MD5sum: 08720bfe9dd20ff17d10362ccb0aa6e2
SHA1: 6c3f2fb9b53e04ad8ddac7b5d731fc7165b8b041
SHA256: b12ffafb42bc2843dd5869feea4085dbb652c2bb1b0763612cc27c499c63c7f5
SHA512: a25242879923d90418d7ebaac4888e302b07fe9d63a429eec053496166c78b9fa59bcd3e523376e82cfe3a715232f129c3a719710ee9fa81fc97c1e474b60016
Description: GNU C compiler for the host architecture
Description-md5: 59ed9d0113679db44713e9ea25c71999

5. The same packages on other Linux Distributions