How to Install and Uninstall gcc-8-riscv64-linux-gnu Package on Ubuntu 20.04 LTS (Focal Fossa)

Last updated: November 26,2024

1. Install "gcc-8-riscv64-linux-gnu" package

This is a short guide on how to install gcc-8-riscv64-linux-gnu on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install gcc-8-riscv64-linux-gnu

2. Uninstall "gcc-8-riscv64-linux-gnu" package

This is a short guide on how to uninstall gcc-8-riscv64-linux-gnu on Ubuntu 20.04 LTS (Focal Fossa):

$ sudo apt remove gcc-8-riscv64-linux-gnu $ sudo apt autoclean && sudo apt autoremove

3. Information about the gcc-8-riscv64-linux-gnu package on Ubuntu 20.04 LTS (Focal Fossa)

Package: gcc-8-riscv64-linux-gnu
Architecture: amd64
Version: 8.4.0-3ubuntu1cross1
Built-Using: gcc-8 (= 8.4.0-3ubuntu1)
Multi-Arch: foreign
Priority: optional
Section: universe/devel
Source: gcc-8-cross-ports (27ubuntu2)
Origin: Ubuntu
Maintainer: Ubuntu Core developers
Original-Maintainer: Debian GCC Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 19405
Provides: c-compiler-riscv64-linux-gnu
Depends: cpp-8-riscv64-linux-gnu (= 8.4.0-3ubuntu1cross1), gcc-8-riscv64-linux-gnu-base (= 8.4.0-3ubuntu1cross1), libcc1-0 (>= 8), binutils-riscv64-linux-gnu (>= 2.34), libgcc-8-dev-riscv64-cross (>= 8.4.0-3ubuntu1cross1), libc6 (>= 2.15), libgcc-s1 (>= 3.0), libgmp10 (>= 2:5.0.1~), libisl22 (>= 0.15), libmpc3, libmpfr6 (>= 3.1.3), libstdc++6 (>= 5), zlib1g (>= 1:1.1.4)
Recommends: libc6-dev-riscv64-cross (>= 2.13-0ubuntu6)
Suggests: gcc-8-doc (>= 8), gcc-8-locales (>= 8)
Conflicts: gcc-multilib
Replaces: cpp-8-riscv64-linux-gnu (<< 7.1.1-8), gccgo-8 (<< 8.4.0-3ubuntu1)
Filename: pool/universe/g/gcc-8-cross-ports/gcc-8-riscv64-linux-gnu_8.4.0-3ubuntu1cross1_amd64.deb
Size: 6408380
MD5sum: 08282b77c3db06cd6767987359a83131
SHA1: a8f6f21d5e0aa3e35d7d13ac0114b78e37a701ca
SHA256: c5ec87e1ec86aad0fd46d490e2934ffe2e02eb17897d980f61208bb68c657bda
Homepage: http://gcc.gnu.org/
Description: GNU C compiler (cross compiler for riscv64 architecture)
Description-md5: 0d14114bfdde50833447e5afa7c0bea2