How To Install authselect on CentOS 8
Introduction
In this tutorial we learn how to install authselect on CentOS 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. 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 CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install authselect.
Install authselect on CentOS 8 Using yum
Update yum database with yum using the following command.
sudo yum makecache
After updating yum database, We can install authselect using yum by running the following command:
sudo yum -y install authselect
Install authselect on CentOS 8 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 authselect using dnf by running the following command:
sudo dnf -y install authselect
How To Uninstall authselect on CentOS 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 CentOS 8 using yum and dnf.