How To Install hostapd on CentOS 7

In this tutorial we learn how to install hostapd on CentOS 7. hostapd is IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator

Introduction

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

What is hostapd

hostapd is a user space daemon for access point and authentication servers. It implements IEEE 802.11 access point management, IEEE 802.1X/WPA/WPA2/EAP Authenticators and RADIUS authentication server. hostapd is designed to be a “daemon” program that runs in the back-ground and acts as the backend component controlling authentication. hostapd supports separate frontend programs and an example text-based frontend, hostapd_cli, is included with hostapd.

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

Install hostapd on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install hostapd

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

sudo dnf -y install hostapd

How To Uninstall hostapd on CentOS 7

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

sudo dnf remove hostapd

References

Summary

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