How To Install scap-security-guide on CentOS 7

In this tutorial we learn how to install scap-security-guide on CentOS 7. scap-security-guide is Security guidance and baselines in SCAP formats

Introduction

In this tutorial we learn how to install scap-security-guide on CentOS 7.

What is scap-security-guide

The scap-security-guide project provides a guide for configuration of the system from the final system’s security point of view. The guidance is specified in the Security Content Automation Protocol (SCAP) format and constitutes a catalog of practical hardening advice, linked to government requirements where applicable. The project bridges the gap between generalized policy requirements and specific implementation guidelines. The Red Hat Enterprise Linux 7 system administrator can use the oscap command-line tool from the openscap-utils package to verify that the system conforms to provided guideline. Refer to scap-security-guide(8) manual page for further information.

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

Install scap-security-guide on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install scap-security-guide using yum by running the following command:

sudo yum -y install scap-security-guide

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

sudo dnf -y install scap-security-guide

How To Uninstall scap-security-guide on CentOS 7

To uninstall only the scap-security-guide package we can use the following command:

sudo dnf remove scap-security-guide

References

Summary

In this tutorial we learn how to install scap-security-guide on CentOS 7 using yum and dnf.