How To Install openscap-containers.noarch on Amazon Linux 2

In this tutorial we learn how to install openscap-containers.noarch in Amazon Linux 2. openscap-containers.noarch is Utils for scanning containers

Introduction

In this tutorial we learn how to install openscap-containers.noarch on Amazon Linux 2.

What is openscap-containers.noarch

Tool for scanning Atomic containers.

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

Install openscap-containers.noarch 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-containers.noarch using yum by running the following command:

sudo yum -y install openscap-containers.noarch

How To Uninstall openscap-containers.noarch on Amazon Linux 2

To uninstall only the openscap-containers.noarch package we can use the following command:

sudo yum remove openscap-containers.noarch

openscap-containers.noarch Package Contents on Amazon Linux 2

/usr/bin/oscap-docker
/usr/lib/python2.7/site-packages/oscap_docker_python/__init__.py
/usr/lib/python2.7/site-packages/oscap_docker_python/__init__.pyc
/usr/lib/python2.7/site-packages/oscap_docker_python/__init__.pyo
/usr/lib/python2.7/site-packages/oscap_docker_python/get_cve_input.py
/usr/lib/python2.7/site-packages/oscap_docker_python/get_cve_input.pyc
/usr/lib/python2.7/site-packages/oscap_docker_python/get_cve_input.pyo
/usr/lib/python2.7/site-packages/oscap_docker_python/oscap_docker_util.py
/usr/lib/python2.7/site-packages/oscap_docker_python/oscap_docker_util.pyc
/usr/lib/python2.7/site-packages/oscap_docker_python/oscap_docker_util.pyo
/usr/share/man/man8/oscap-docker.8.gz

References

Summary

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