How to Install and Uninstall gcc-4.8 Package on Ubuntu 18.04 LTS (Bionic Beaver)

Last updated: May 05,2024

1. Install "gcc-4.8" package

Please follow the step by step instructions below to install gcc-4.8 on Ubuntu 18.04 LTS (Bionic Beaver)

$ sudo apt update $ sudo apt install gcc-4.8

2. Uninstall "gcc-4.8" package

Please follow the instructions below to uninstall gcc-4.8 on Ubuntu 18.04 LTS (Bionic Beaver):

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

3. Information about the gcc-4.8 package on Ubuntu 18.04 LTS (Bionic Beaver)

Package: gcc-4.8
Architecture: amd64
Version: 4.8.5-4ubuntu8
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: 14205
Provides: c-compiler
Depends: cpp-4.8 (= 4.8.5-4ubuntu8), gcc-4.8-base (= 4.8.5-4ubuntu8), binutils (>= 2.30), libgcc-4.8-dev (>= 4.8.5-4ubuntu8), libc6 (>= 2.14), libgmp10 (>= 2:5.0.1~), libmpc3, libmpfr6 (>= 3.1.3), zlib1g (>= 1:1.1.4)
Recommends: libc6-dev (>= 2.13-0ubuntu6)
Suggests: gcc-4.8-multilib, gcc-4.8-doc (>= 4.8), gcc-4.8-locales (>= 4.8), libgcc1-dbg (>= 1:4.8.5-4ubuntu8), libgomp1-dbg (>= 4.8.5-4ubuntu8), libitm1-dbg (>= 4.8.5-4ubuntu8), libatomic1-dbg (>= 4.8.5-4ubuntu8), libasan0-dbg (>= 4.8.5-4ubuntu8), libtsan0-dbg (>= 4.8.5-4ubuntu8), libquadmath0-dbg (>= 4.8.5-4ubuntu8)
Filename: pool/universe/g/gcc-4.8/gcc-4.8_4.8.5-4ubuntu8_amd64.deb
Size: 4510204
MD5sum: 71b773f1734de936dc0d17584f3d6f74
SHA1: fecd0e36c2424a3e225979850995ec0d6c4ef088
SHA256: 4c9ae2e9a75581c71ec3ffd5403da98af66a62ff4b8e27e6042e5c77c841c6eb
Homepage: http://gcc.gnu.org/
Description: GNU C compiler
Description-md5: 394374e688b1afb3af5f419895d29698