Installing PDSH on RedHat

Download PDSH src RPM from http://sourceforge.net/projects/pdsh/.

Install the dependencies:

yum install elfutils libtermcap-devel ncurses-devel pam-devel-readline-devel rpm-build

Install the sources:

rpm -ivh pdsh-RELEASE.src.rpm

Modify /usr/src/redhat/SPECS/pdsh.spec to make SSH the default shell by removing “readline”:

%define _defaults ssh exec pam

Compile the RPM binaries from the spec:

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

Install the RPM binaries:

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

Leave a Reply

Your email address will not be published. Required fields are marked *