How To Install dsh on Ubuntu 20.04
Introduction
In this tutorial we learn how to install dsh on Ubuntu 20.04.
What is dsh
dsh is:
Executes specified command on a group of computers using remote shell methods such as rsh or ssh.
dsh can parallelise job submission using several algorithms, such as using fan-out method or opening as much connections as possible, or using a window of connections at one time. It also supports “interactive mode” for interactive maintenance of remote hosts.
This tool is handy for administration of PC clusters, and multiple hosts.
http://www.netfort.gr.jp/~dancer/software/dsh.html
There are three methods to install dsh 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 dsh Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install dsh using apt-get by running the following command:
sudo apt-get -y install dsh
Install dsh Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install dsh using apt by running the following command:
sudo apt -y install dsh
Install dsh 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 dsh using aptitude by running the following command:
sudo aptitude -y install dsh
How To Uninstall dsh on Ubuntu 20.04
To uninstall only the dsh package we can use the following command:
sudo apt-get remove dsh
Uninstall dsh And Its Dependencies
To uninstall dsh and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove dsh
Remove dsh Configurations and Data
To remove dsh configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge dsh
Remove dsh configuration, data, and all of its dependencies
We can use the following command to remove dsh configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge dsh
References
Summary
In this tutorial we learn how to install dsh package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.