How To Install authselect on AlmaLinux 8

In this tutorial we learn how to install authselect in AlmaLinux 8. authselect is Configures authentication and identity sources from supported profiles

Introduction

In this tutorial we learn how to install authselect on AlmaLinux 8.

What is authselect

Authselect is designed to be a replacement for authconfig but it takes a different approach to configure the system. Instead of letting the administrator build the PAM stack with a tool (which may potentially end up with a broken configuration), it would ship several tested stacks (profiles) that solve a use-case and are well tested and supported. At the same time, some obsolete features of authconfig are not supported by authselect.

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

Install authselect on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install authselect

Install authselect on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install authselect

How To Uninstall authselect on AlmaLinux 8

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

sudo dnf remove authselect

References

Summary

In this tutorial we learn how to install authselect on AlmaLinux 8 using yum and dnf.