How To Install salt-api on Fedora 36

In this tutorial we learn how to install salt-api in Fedora 36. salt-api is REST API for Salt, a parallel remote execution system

Introduction

In this tutorial we learn how to install salt-api on Fedora 36.

What is salt-api

salt-api provides a REST interface to the Salt master. Supports Python 3.

We can use yum or dnf to install salt-api on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install salt-api.

Install salt-api on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install salt-api

Install salt-api on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install salt-api using yum by running the following command:

sudo yum -y install salt-api

How To Uninstall salt-api on Fedora 36

To uninstall only the salt-api package we can use the following command:

sudo dnf remove salt-api

salt-api Package Contents on Fedora 36

/usr/bin/salt-api
/usr/lib/systemd/system/salt-api.service
/usr/share/man/man1/salt-api.1.gz

References

Summary

In this tutorial we learn how to install salt-api on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).