---
name: "scap-as-rpm"
section: "8"
platform: "linux"
package: "openscap"
version: "1.4.5-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/scap-as-rpm"
---

# scap-as-rpm(8)

takes given SCAP input(s) and packs them in an RPM package

## NAME

scap-as-rpm - takes given SCAP input(s) and packs them in an RPM package

## DESCRIPTION

usage: scap-as-rpm \[-h\] \[--pkg-name PKG\_NAME\] \[--pkg-version PKG\_VERSION\]

-

  \[--pkg-release PKG\_RELEASE\] \[--pkg-summary PKG\_SUMMARY\] \[--pkg-license PKG\_LICENSE\] \[--pkg-scap-location PKG\_SCAP\_LOCATION\] \[--rpm-destination RPM\_DESTINATION\] \[--srpm-destination SRPM\_DESTINATION\] FILE \[FILE ...\]

Takes given SCAP input(s) and makes an RPM package that contains them. The result RPM can be installed using # yum install ./package-name-1-1.rpm which will put the contents into */usr/share/xml/scap*. No dependency on OpenSCAP is enforced in the output package, so you can use any SCAP-capable scanner to evaluate the content.

### positional arguments:

- FILE

  List of files that should be put into the result package. These should be SCAP XML files but such requirement is not enforced.

### optional arguments:

- **-h**, **--help**

  Show this help message and exit.

- **--pkg-name** PKG\_NAME

  Name of the RPM package, if none is provided, the basename of the first SCAP input is used. Ex.: xyzsecurity-guide

- **--pkg-version** PKG\_VERSION

  - **--pkg-release** PKG\_RELEASE

  - **--pkg-summary** PKG\_SUMMARY

  Optional short description of the package.

- **--pkg-license** PKG\_LICENSE

  Short name of the license that you want to publish the package under. Ex.: GPLv2+, BSD, ...

- **--pkg-scap-location** PKG\_SCAP\_LOCATION

  Folder where SCAP files are supposed to be installed. Each package will have its own folder inside this folder. RPM variables can be used and will be expanded as usual. It is recommended to keep the default settings.

- **--rpm-destination** RPM\_DESTINATION

  The folder (absolute or relative to CWD) where the result RPM shall be saved.

- **--srpm-destination** SRPM\_DESTINATION

  The folder (absolute or relative to CWD) where the result SRPM shall be saved.
