Install PDSH

This document discribes how to install the Parallel Distributed Shell (PDSH), which allows to execute the same command in parallel on multiple machines.


Download the source packages of the latest PDSH release from


Install the sources:

rpm -ivh pdsh-RELEASE.src.rpm 

Modify /usr/scr/redhat/SPECS/pdsh.spec in order to make SSH the default shell by removing "readline":

%define _defaults ssh exec pam

Prepare and compile the RPM binaries:

rpmbuild -v -bb /usr/scr/redhat/SPECS/pdsh.spec

Install the RPM binaries:

rpm -iv /usr/src/redhat/RPMS/x86_64/pdsh-rcmd-exec-2.14-1.x86_64.rpm
rpm -iv /usr/src/redhat/RPMS/x86_64/pdsh-rcmd-ssh-2.14-1.x86_64.rpm
rpm -iv /usr/src/redhat/RPMS/x86_64/pdsh-2.14-1.x86_64.rpm


pdsh -Rssh -w s0[1-4] COMMAND