How to Install or Uninstall crmsh Ubuntu 22.04

Updated: September 5, 2022

The crm shell is an advanced command-line interface for High-Availability cluster management in GNU/Linux. Effortlessly configure, manage and troubleshoot your clusters from the command line, with full tab completion and extensive help. crmsh also provides advanced features like low-level cluster configuration, cluster scripting and package management, and history exploration tools giving you an instant view of what your cluster is doing. I will show you how to install crmsh on Ubuntu 22.04 in this tutorial.

Requirements

  • OS: Ubuntu 22.04 or older Ubuntu versions
  • Privileges: Verify that you can execute the sudo commands line.

Prerequisites to install crmsh on Ubuntu 22.04

Install crmsh Ubuntu 22.04

crmsh 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 crmsh using APT

This is a popular method for installing Ubuntu packages since it’s simple to understand, even if you’re new to Linux. Following these steps to get crmsh on your Ubuntu.

Step 1: Update the APT database to download new packages from Ubuntu. Launch the terminal and enter the following Linux command:

sudo apt -y update

Step 2: Start the package installation on Ubuntu 22.04. After updating the system, you can install crmsh Ubuntu by pasting this command into the terminal and executing it.

sudo apt-get -y install crmsh

Install crmsh using Aptitude

Aptitude allows users to view a list of available packages and manage package installation, upgrade, and removal. If you haven’t already installed it on Ubuntu, run this command to do so.

sudo apt-get -y install aptitude

Then, you can now install crmsh, 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 fetch new packages from Ubuntu. Launch the terminal and enter the following Linux command:

sudo apt -y update

Step 2: Start the package installation on Ubuntu 22.04. After updating, you can install crmsh Ubuntu by pasting this command into the terminal and executing it.

sudo aptitude -y install crmsh

Uninstall crmsh 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 crmsh, can be easily uninstalled by anyone.

This command can be used to uninstall crmsh from Ubuntu 22.04 if it was installed using APT or Aptitude.

sudo apt remove --auto-remove crmsh

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

sudo apt autoremove --purge crmsh

Conclusion

In this guide, I showed you ways to install crmsh on Ubuntu 22.04 and ways to uninstall crmsh too. If you need any help, don’t hesitate to contact me. I’m very glad to answer them.