oscap command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
oscap: command not found
or when using sudo you get the following error message
sudo: oscap: command not found
Solutions to oscap: command not found
How To Fix oscap: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu oscap is provided by libopenscap8 package.
libopenscap8 is:
OpenSCAP is a set of open source libraries providing an easier path for integration of the SCAP line of standards. SCAP is a line of standards managed by NIST with the goal of providing a standard language for the expression of Computer Network Defense related information.
The intended scope of this project is to implement working interface wrappers for parsing and querying SCAP content including:
- Common Vulnerabilities and Exposures (CVE)
- Common Configuration Enumeration (CCE)
- Common Platform Enumeration (CPE)
- Common Vulnerability Scoring System (CVSS)
- Extensible Configuration Checklist Description Format (XCCDF)
- Open Vulnerability and Assessment Language (OVAL)
To fix this problem, we can install more using the command below.
sudo apt-get -y install libopenscap8
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libopenscap8.
sudo apt -y install libopenscap8
Or if you have aptitude installed you can use the following command.
sudo aptitude install libopenscap8
Summary
In this tutorial we learn how to fix oscap command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.