How To Install libatomic1-riscv64-cross on Ubuntu 20.04

In this tutorial we learn how to install libatomic1-riscv64-cross on Ubuntu 20.04. libatomic1-riscv64-cross is support library providing __atomic built-in functions support library providing __atomic built-in functions support library providing __atomic built-in functions

Introduction

In this tutorial we learn how to install libatomic1-riscv64-cross on Ubuntu 20.04.

What is libatomic1-riscv64-cross

libatomic1-riscv64-cross is:

library providing __atomic built-in functions. When an atomic call cannot be turned into lock-free instructions, GCC will make calls into this library.

Package: libatomic1-riscv64-cross Architecture: all Version: 10.2.0-5ubuntu1~20.04cross1 Built-Using: gcc-10 (= 10.2.0-5ubuntu1~20.04) Priority: optional Section: universe/devel Source: gcc-10-cross-ports (5ubuntu2) Origin: Ubuntu Maintainer: Ubuntu Core developers [email protected] Original-Maintainer: Debian GCC Maintainers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 28 Depends: gcc-10-cross-base-ports (= 10.2.0-5ubuntu1~20.04cross1), libc6-riscv64-cross (>= 2.31) Filename: pool/universe/g/gcc-10-cross-ports/libatomic1-riscv64-cross_10.2.0-5ubuntu1~20.04cross1_all.deb Size: 7200 MD5sum: ba0179de9091799c54ec68feb477bdf9 SHA1: cee3641a226cf13696fe6dafce8151b938fafb0b SHA256: 78ef15ed66b30032831ec75ebee00cdef1b7d2b2e77c1c60b2f60c730bb2119c SHA512: 6773ae757375594701c72bcd47094199a3f99215b986fe2ea2fc93ea032a26b256203243962fa0c53263be641345c2fa73bf383b5e31cc7f6fcda377d594ee65 Homepage: http://gcc.gnu.org/ Description-en: support library providing __atomic built-in functions library providing __atomic built-in functions. When an atomic call cannot be turned into lock-free instructions, GCC will make calls into this library.

Package: libatomic1-riscv64-cross Architecture: all Version: 10-20200411-0ubuntu1cross1 Built-Using: gcc-10 (= 10-20200411-0ubuntu1) Priority: optional Section: universe/devel Source: gcc-10-cross-ports (5ubuntu1) Origin: Ubuntu Maintainer: Ubuntu Core developers [email protected] Original-Maintainer: Debian GCC Maintainers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 28 Depends: gcc-10-cross-base-ports (= 10-20200411-0ubuntu1cross1), libc6-riscv64-cross (>= 2.31) Filename: pool/universe/g/gcc-10-cross-ports/libatomic1-riscv64-cross_10-20200411-0ubuntu1cross1_all.deb Size: 7200 MD5sum: 394b134faa0075bdb0df6a4664eb4154 SHA1: f73bb8572e12eb242024272063ca7418589dbf88 SHA256: af1d856deaac54ef10c37b5ded6c2edadb9b8308437fef1f282fe782c1c00338 Homepage: http://gcc.gnu.org/ Description-en: support library providing __atomic built-in functions library providing __atomic built-in functions. When an atomic call cannot be turned into lock-free instructions, GCC will make calls into this library.

There are three methods to install libatomic1-riscv64-cross on Ubuntu 20.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libatomic1-riscv64-cross Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install libatomic1-riscv64-cross using apt-get by running the following command:

sudo apt-get -y install libatomic1-riscv64-cross

Install libatomic1-riscv64-cross Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libatomic1-riscv64-cross using apt by running the following command:

sudo apt -y install libatomic1-riscv64-cross

Install libatomic1-riscv64-cross Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libatomic1-riscv64-cross using aptitude by running the following command:

sudo aptitude -y install libatomic1-riscv64-cross

How To Uninstall libatomic1-riscv64-cross on Ubuntu 20.04

To uninstall only the libatomic1-riscv64-cross package we can use the following command:

sudo apt-get remove libatomic1-riscv64-cross

Uninstall libatomic1-riscv64-cross And Its Dependencies

To uninstall libatomic1-riscv64-cross and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove libatomic1-riscv64-cross

Remove libatomic1-riscv64-cross Configurations and Data

To remove libatomic1-riscv64-cross configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge libatomic1-riscv64-cross

Remove libatomic1-riscv64-cross configuration, data, and all of its dependencies

We can use the following command to remove libatomic1-riscv64-cross configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libatomic1-riscv64-cross

References

Summary

In this tutorial we learn how to install libatomic1-riscv64-cross package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.