How To Install wsmancli on Rocky Linux 8

In this tutorial we learn how to install wsmancli on Rocky Linux 8. wsmancli is WS-Management-Command line Interface

Introduction

In this tutorial we learn how to install wsmancli on Rocky Linux 8.

What is wsmancli

Command line interface for managing systems using Web Services Management protocol.

We can use yum or dnf to install wsmancli on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install wsmancli.

Install wsmancli on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install wsmancli using dnf by running the following command:

sudo dnf -y install wsmancli

Install wsmancli on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install wsmancli using yum by running the following command:

sudo yum -y install wsmancli

How To Uninstall wsmancli on Rocky Linux 8

To uninstall only the wsmancli package we can use the following command:

sudo dnf remove wsmancli

wsmancli Package Contents on Rocky Linux 8

/usr/bin/wseventmgr
/usr/bin/wsman
/usr/lib/.build-id
/usr/lib/.build-id/53
/usr/lib/.build-id/53/7809c69b8e79e3f7b213214eef16bf478ebfe6
/usr/lib/.build-id/a6
/usr/lib/.build-id/a6/7cb135691c54aaac63086df32f7cb929edb4f9
/usr/share/doc/wsmancli
/usr/share/doc/wsmancli/AUTHORS
/usr/share/doc/wsmancli/COPYING
/usr/share/doc/wsmancli/README
/usr/share/man/man1/wseventmgr.1.gz
/usr/share/man/man1/wsman.1.gz

References

Summary

In this tutorial we learn how to install wsmancli on Rocky Linux 8 using yum and dnf.