How To Install xjobs on Debian 10
Introduction
In this tutorial we learn how to install xjobs
on Debian 10.
What is xjobs
xjobs is:
xjobs reads job descriptions line by line and executes them in parallel. It limits the number of parallel executing jobs and starts new jobs when jobs finish. Therefore, it combines the arguments from every input line with the utility and arguments given on the command line. If no utility is given as an argument to xjobs, then the first argument on every job line will be used as utility. To execute utility xjobs searches the directories given in the PATH environment variable and uses the first file found in these directories.
xjobs is most useful on multi-processor/core machines when one needs to execute several time consuming command several that could possibly be run in parallel. With xjobs this can be achieved easily, and it is possible to limit the load of the machine to a useful value. It works similar to xargs, but starts several processes simultaneously and gives only one line of arguments to each utility call.
There are three methods to install xjobs
on Debian 10. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install xjobs Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install xjobs
using apt-get
by running the following command:
sudo apt-get -y install xjobs
Install xjobs Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install xjobs
using apt
by running the following command:
sudo apt -y install xjobs
Install xjobs 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 xjobs
using aptitude
by running the following command:
sudo aptitude -y install xjobs
How To Uninstall xjobs on Debian 10
To uninstall only the xjobs
package we can use the following command:
sudo apt-get remove xjobs
Uninstall xjobs And Its Dependencies
To uninstall xjobs
and its dependencies that are no longer needed by Debian 10, we can use the command below:
sudo apt-get -y autoremove xjobs
Remove xjobs Configurations and Data
To remove xjobs
configuration and data from Debian 10 we can use the following command:
sudo apt-get -y purge xjobs
Remove xjobs configuration, data, and all of its dependencies
We can use the following command to remove xjobs
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge xjobs
Dependencies
xjobs have the following dependencies:
References
Summary
In this tutorial we learn how to install xjobs
package on Debian 10 using different package management tools: apt
, apt-get
and aptitude
.