How To Install openscap-utils.x86_64 on Amazon Linux 2

In this tutorial we learn how to install openscap-utils.x86_64 in Amazon Linux 2. openscap-utils.x86_64 is OpenSCAP Utilities

Introduction

In this tutorial we learn how to install openscap-utils.x86_64 on Amazon Linux 2.

What is openscap-utils.x86_64

The openscap-utils package contains command-line tools build on top of OpenSCAP library. Historically, openscap-utils included oscap tool which is now separated to openscap-scanner sub-package.

We can use yum to install openscap-utils.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install openscap-utils.x86_64.

Install openscap-utils.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install openscap-utils.x86_64 using yum by running the following command:

sudo yum -y install openscap-utils.x86_64

How To Uninstall openscap-utils.x86_64 on Amazon Linux 2

To uninstall only the openscap-utils.x86_64 package we can use the following command:

sudo yum remove openscap-utils.x86_64

openscap-utils.x86_64 Package Contents on Amazon Linux 2

/usr/bin/oscap-ssh
/usr/bin/oscap-vm
/usr/bin/scap-as-rpm
/usr/share/doc/openscap-utils-1.2.17
/usr/share/doc/openscap-utils-1.2.17/oscap-scan.cron
/usr/share/man/man8/oscap-ssh.8.gz
/usr/share/man/man8/oscap-vm.8.gz
/usr/share/man/man8/scap-as-rpm.8.gz

References

Summary

In this tutorial we learn how to install openscap-utils.x86_64 on Amazon Linux 2 using yum.