How to Install and Uninstall g++-9-riscv64-linux-gnu Package on Ubuntu 21.04 (Hirsute Hippo)

Last updated: July 01,2024

1. Install "g++-9-riscv64-linux-gnu" package

This tutorial shows how to install g++-9-riscv64-linux-gnu on Ubuntu 21.04 (Hirsute Hippo)

$ sudo apt update $ sudo apt install g++-9-riscv64-linux-gnu

2. Uninstall "g++-9-riscv64-linux-gnu" package

This guide covers the steps necessary to uninstall g++-9-riscv64-linux-gnu on Ubuntu 21.04 (Hirsute Hippo):

$ sudo apt remove g++-9-riscv64-linux-gnu $ sudo apt autoclean && sudo apt autoremove

3. Information about the g++-9-riscv64-linux-gnu package on Ubuntu 21.04 (Hirsute Hippo)

Package: g++-9-riscv64-linux-gnu
Architecture: amd64
Version: 9.3.0-19ubuntu1cross1
Built-Using: gcc-9 (= 9.3.0-19ubuntu1)
Multi-Arch: foreign
Priority: optional
Section: universe/devel
Source: gcc-9-cross-ports (22ubuntu1)
Origin: Ubuntu
Maintainer: Ubuntu Core developers
Original-Maintainer: Debian GCC Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 20339
Provides: c++-compiler-riscv64-linux-gnu
Depends: gcc-9-riscv64-linux-gnu-base (= 9.3.0-19ubuntu1cross1), gcc-9-riscv64-linux-gnu (= 9.3.0-19ubuntu1cross1), libstdc++-9-dev-riscv64-cross (>= 8), libc6 (>= 2.14), libgmp10 (>= 2:5.0.1~), libisl23 (>= 0.15), libmpc3 (>= 1.1.0), libmpfr6 (>= 3.1.3), zlib1g (>= 1:1.1.4)
Suggests: gcc-9-doc (>= 8)
Filename: pool/universe/g/gcc-9-cross-ports/g++-9-riscv64-linux-gnu_9.3.0-19ubuntu1cross1_amd64.deb
Size: 7213408
MD5sum: b49a2af89607af5db723c1272d62842b
SHA1: c99c8ac295695ca4c5ab79497fdb95ecbd1392bb
SHA256: 9dd14643f5b933b315ac716a520438143df5a21e01bebff2d28df15aea800d25
SHA512: cda8bde9bf463653bd7b085adde1616fb2a57812846772e57f03a5f197590300e9fe537c4fa48fa1d9b9d59e0a39356d10598c23e7c6d2843906545a85a41d2e
Homepage: http://gcc.gnu.org/
Description-en: GNU C++ compiler (cross compiler for riscv64 architecture)
This is the GNU C++ compiler, a fairly portable optimizing compiler for C++.
.
This package contains C++ cross-compiler for riscv64 architecture.
Description-md5: 3c417007b0cbe0fdbdbd2d7eb5e639b2