How To Install libsys-cpuaffinity-perl on Debian 9

In this tutorial we learn how to install libsys-cpuaffinity-perl on Debian 9. libsys-cpuaffinity-perl is module to set CPU affinity for processes

Introduction

In this tutorial we learn how to install libsys-cpuaffinity-perl on Debian 9.

What is libsys-cpuaffinity-perl

libsys-cpuaffinity-perl is:

The details of getting and setting process CPU affinities varies greatly from system to system. Even among the different flavors of Unix there is very little in the way of a common interface to CPU affinities. The existing tools and libraries for setting CPU affinities are not very standardized, so that a technique for setting CPU affinities on one system may not work on another system with the same architecture.

Sys::CpuAffinity seeks to do one thing and do it well: manipulate CPU affinities through a common interface on as many systems as possible, by any means necessary.

The module is composed of several subroutines, each one implementing a different technique to perform a CPU affinity operation. A technique might try to import a Perl module, run an external program that might be installed on your system, or invoke some C code to access your system libraries. Usually, a technique is applicable to only a single or small group of operating systems, and on any particular system, the vast majority of techniques would fail. Regardless of your particular system and configuration, it is hoped that at least one of the techniques will work and you will be able to get and set the CPU affinities of your processes.

There are three methods to install libsys-cpuaffinity-perl 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 libsys-cpuaffinity-perl Using apt-get

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

sudo apt-get update

After updating apt database, We can install libsys-cpuaffinity-perl using apt-get by running the following command:

sudo apt-get -y install libsys-cpuaffinity-perl

Install libsys-cpuaffinity-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libsys-cpuaffinity-perl using apt by running the following command:

sudo apt -y install libsys-cpuaffinity-perl

Install libsys-cpuaffinity-perl 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 libsys-cpuaffinity-perl using aptitude by running the following command:

sudo aptitude -y install libsys-cpuaffinity-perl

How To Uninstall libsys-cpuaffinity-perl on Debian 9

To uninstall only the libsys-cpuaffinity-perl package we can use the following command:

sudo apt-get remove libsys-cpuaffinity-perl

Uninstall libsys-cpuaffinity-perl And Its Dependencies

To uninstall libsys-cpuaffinity-perl and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove libsys-cpuaffinity-perl

Remove libsys-cpuaffinity-perl Configurations and Data

To remove libsys-cpuaffinity-perl configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge libsys-cpuaffinity-perl

Remove libsys-cpuaffinity-perl configuration, data, and all of its dependencies

We can use the following command to remove libsys-cpuaffinity-perl configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libsys-cpuaffinity-perl

Dependencies

libsys-cpuaffinity-perl have the following dependencies:

References

Summary

In this tutorial we learn how to install libsys-cpuaffinity-perl package on Debian 9 using different package management tools: apt, apt-get and aptitude.