How to Uninstall and Install pssh on Ubuntu 22.04

Updated: September 21, 2022

pssh provides a number of commands for executing against a group of computers, using SSH. It’s most useful for operating on clusters of homogenously-configured hosts. I will show you how to install pssh on Ubuntu 22.04 in this tutorial.

Requirements to install

  • OS: pssh needs Ubuntu 22.04 to work
  • Privileges: Make sure that you can run the sudo commands line.

Prerequisites to install pssh on Ubuntu 22.04

Install pssh Ubuntu 22.04

pssh is one of the popular ways on Ubuntu now so that this tutorial will show you some ways to install it. Choose the one that you think is easy and you can follow.

Install pssh using APT

This is one of the popular ways to install any Ubuntu packages because it is simple to understand, even if you are a Linux novice. Following these steps to install pssh on your Ubuntu 22.04.

Step 1: The APT package repository cache needs to be updated before you try to install, update, or remove any packages. Update the APT database to download new packages from Ubuntu. Launching the terminal and entering the following Linux command:

sudo apt-get update

Step 2: Start the package installation on Ubuntu 22.04. You can now install pssh Ubuntu by executing this command in the terminal.

sudo apt-get -y install pssh

Install pssh using Aptitude

If you didn’t install Aptitude on Ubuntu, you need to install it by executing this command.

sudo apt-get install aptitude

Then, you can now install pssh, just following these steps:

Step 1: The APT package repository cache needs to be updated before you try to install, update, or remove any packages. Update the APT database to download new packages from Ubuntu. Launching the terminal and entering the following Linux command:

sudo apt-get -y update

Step 2: Start installing the packages on Ubuntu 22.04. After updating, you can install pssh Ubuntu by executing this command in the terminal.

sudo aptitude install pssh

Uninstall pssh on Ubuntu 22.04

Have you ever thought that uninstalling an application from Ubuntu might be challenging? You’re wrong; any program, not just a pssh, can be easily uninstalled by anyone.

If you installed pssh using APT or Aptitude, you could uninstall pssh on Ubuntu by following this step:

sudo apt remove --auto-remove pssh

You can also execute this command if you want to uninstall pssh and remove its data and dependencies:

sudo apt autoremove --purge pssh

Summary

In this tutorial, I showed you ways to install pssh on Ubuntu 22.04 and ways to uninstall pssh too. Please contact me if you require any assistance. I’d be delighted to respond.