How To Install libatomic-ops-dev on Debian 9
Introduction
In this tutorial we learn how to install libatomic-ops-dev
on Debian 9.
What is libatomic-ops-dev
libatomic-ops-dev is:
Libatomic-ops implements a large collection of operations, each one of which is a combination of an (optional) atomic memory operation, and a memory barrier. It also implements associated feature-test macros that determine whether a particular operation is available on the current target hardware (either directly or by synthesis). Libatomic-ops attempts to replace various existing files with similar goals, since they usually do not handle differences in memory barrier styles with sufficient generality.
This package provides the header files and documentation needed by developers.
There are three methods to install libatomic-ops-dev
on Debian 9. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libatomic-ops-dev Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libatomic-ops-dev
using apt-get
by running the following command:
sudo apt-get -y install libatomic-ops-dev
Install libatomic-ops-dev Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libatomic-ops-dev
using apt
by running the following command:
sudo apt -y install libatomic-ops-dev
Install libatomic-ops-dev 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 Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install libatomic-ops-dev
using aptitude
by running the following command:
sudo aptitude -y install libatomic-ops-dev
How To Uninstall libatomic-ops-dev on Debian 9
To uninstall only the libatomic-ops-dev
package we can use the following command:
sudo apt-get remove libatomic-ops-dev
Uninstall libatomic-ops-dev And Its Dependencies
To uninstall libatomic-ops-dev
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove libatomic-ops-dev
Remove libatomic-ops-dev Configurations and Data
To remove libatomic-ops-dev
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge libatomic-ops-dev
Remove libatomic-ops-dev configuration, data, and all of its dependencies
We can use the following command to remove libatomic-ops-dev
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libatomic-ops-dev
Dependencies
libatomic-ops-dev have the following dependencies:
References
Summary
In this tutorial we learn how to install libatomic-ops-dev
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.