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

Last updated: December 29,2024

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

This guide let you learn how to install gcc-riscv64-linux-gnu on Ubuntu 20.04 LTS (Focal Fossa)

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

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

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

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

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

Package: gcc-riscv64-linux-gnu
Architecture: amd64
Version: 4:9.3.0-1ubuntu2
Multi-Arch: foreign
Priority: optional
Section: universe/devel
Source: gcc-defaults-ports (1.185ubuntu2)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian GCC Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 25
Depends: cpp-riscv64-linux-gnu (= 4:9.3.0-1ubuntu2), gcc-9-riscv64-linux-gnu (>= 9.3.0-3~)
Recommends: libc6-dev-riscv64-cross | libc-dev-riscv64-cross
Suggests: make, manpages-dev, autoconf, automake, libtool, flex, bison, gdb-riscv64-linux-gnu, gcc-doc
Filename: pool/universe/g/gcc-defaults-ports/gcc-riscv64-linux-gnu_9.3.0-1ubuntu2_amd64.deb
Size: 1420
MD5sum: 55d8e2e9d17de1dd643365800b836a24
SHA1: 98684d8cc698063e5d7303bc7920a9af59750469
SHA256: 4fc92f5e6c67bdd1d5f1d71dc1fc608646d0a5673e3244521b8b136b7e77041f
Description: GNU C compiler for the riscv64 architecture
Description-md5: 076e3ddf958518fce5f91a3ca856f2b9