Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
build and run oscap on Ubuntu
git clone
cd openscap
sudo apt-get update && sudo apt-get install -y libcurl4-openssl-dev \
libxml2-dev \
libxslt-dev \
libpcre3-dev \
libgcrypt20-dev \
libbz2-dev \
swig \
./configure --prefix /usr --enable-util-oscap --enable-util-oscap-chroot --enable-util-oscap-docker --enable-util-oscap-ssh --enable-util-oscap-vm
make -j `nproc` && sudo make install
# Ubuntu xenial
wget -O /tmp/com.ubuntu.xenial.cve.oval.xml
oscap oval eval --results /tmp/results-xenial.xml --report /tmp/report-xenial.html com.ubuntu.xenial.cve.oval.xml
# Debian
wget -O /tmp/oval-definitions-2017.xml
oscap oval eval --results /tmp/results-debian.xml --report /tmp/report-debian.html /tmp/oval-definitions-2017.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.