How To Install wpa_supplicant on CentOS 7

In this tutorial we learn how to install wpa_supplicant on CentOS 7. wpa_supplicant is WPA/WPA2/IEEE 802.1X Supplicant

Introduction

In this tutorial we learn how to install wpa_supplicant on CentOS 7.

What is wpa_supplicant

wpa_supplicant is a WPA Supplicant for Linux, BSD and Windows with support for WPA and WPA2 (IEEE 802.11i / RSN). Supplicant is the IEEE 802.1X/WPA component that is used in the client stations. It implements key negotiation with a WPA Authenticator and it controls the roaming and IEEE 802.11 authentication/association of the wlan driver.

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

Install wpa_supplicant on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install wpa_supplicant

Install wpa_supplicant 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 wpa_supplicant using dnf by running the following command:

sudo dnf -y install wpa_supplicant

How To Uninstall wpa_supplicant on CentOS 7

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

sudo dnf remove wpa_supplicant

References

Summary

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