How To Install python-sss on CentOS 7

In this tutorial we learn how to install python-sss on CentOS 7. python-sss is Python2 bindings for sssd

Introduction

In this tutorial we learn how to install python-sss on CentOS 7.

What is python-sss

Provides python2 module for manipulating users, groups, and nested groups in SSSD when using id_provider = local in /etc/sssd/sssd.conf. Also provides several other useful python2 bindings * function for retrieving list of groups user belongs to. * class for obfuscation of passwords

We can use yum or dnf to install python-sss on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install python-sss.

Install python-sss on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install python-sss

Install python-sss on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install python-sss

How To Uninstall python-sss on CentOS 7

To uninstall only the python-sss package we can use the following command:

sudo dnf remove python-sss

References

Summary

In this tutorial we learn how to install python-sss on CentOS 7 using yum and dnf.