scap-as-rpm(8)
π scap-as-rpm(8) β system administration utilities, but make it cute
okay bestie, sit down, we're learning scap-as-rpm today. it lives in section 8 of the manual (the system administration girlies), and it's literally just: you hand it some SCAP files, it hands you back an RPM. that's the whole vibe. β¨
πΈ NAME πΈ
scap-as-rpm β takes given SCAP input(s) and packs them in an RPM package π
π¦ SYNOPSIS π¦
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 ...]
π DESCRIPTION π
so like, what does it do. it takes the SCAP input(s) you give it and makes an RPM package that contains them. that's it. that's the whole job. π
the RPM you get out of it can be installed with:
# yum install ./package-name-1-1.rpm
and when you do that, the contents land in /usr/share/xml/scap. periodt. π«Ά
heads up bestie: there is no dependency on OpenSCAP enforced in the output package. so you can use any SCAP-capable scanner you want to evaluate the content. we don't gatekeep here. π
π§ positional arguments
FILEβ the list of files that should be put into the result package. these should be SCAP XML files, but lowkey that requirement is not enforced, so do with that what you will π
β optional arguments
-h,--helpβ shows this help message and dips. the classic. β¨--pkg-name PKG_NAMEβ the name of the RPM package. if you don't give one, it just uses the basename of the first SCAP input. example:xyzsecurity-guideπ--pkg-version PKG_VERSIONβ sets the package version.--pkg-release PKG_RELEASEβ sets the package release.--pkg-summary PKG_SUMMARYβ an optional short description of the package. optional. short. your moment to shine β¨--pkg-license PKG_LICENSEβ the short name of the license you want to publish the package under. examples:GPLv2+,BSD,...π--pkg-scap-location PKG_SCAP_LOCATIONβ the folder where the SCAP files are supposed to be installed. each package gets its own folder inside this folder, no fighting over space π«Ά. RPM variables can be used here and will be expanded as usual. it is recommended to keep the default settings. (genuinely. keep the defaults.)--rpm-destination RPM_DESTINATIONβ the folder (absolute, or relative to the CWD) where the resulting RPM shall be saved. π¦--srpm-destination SRPM_DESTINATIONβ the folder (absolute, or relative to the CWD) where the resulting SRPM shall be saved. source RPMs deserve a home too π
π SEE ALSO π
(no SEE ALSO section in the original β so nothing to cross-reference, bestie. i checked. twice.)
and that's the whole page, you ate that π β¨
signing off from the scap-as-rpm manual page, November 2013 edition, brought to you by scap-as-rpm itself (yes, the page and the tool share a name, it's giving main character energy π). now go pack some RPMs fr fr. π¦π
π¦ where this page comes from
- alpine 3.24: openscap-doc 1.4.4-r0 Β· LGPL-2.1-or-later
- arch rolling: openscap 1.4.5-2 Β· LGPL-2.1-or-later
- centos-stream 10: openscap-utils 1:1.4.6-1.el10 Β· LGPL-2.1-or-later
- centos-stream 9: openscap-utils 1:1.3.16-1.el9 Β· LGPLv2+
- debian bookworm: openscap-utils 1.3.7+dfsg-1+deb12u1 Β· LGPL-2.1-or-later
- debian trixie: openscap-utils 1.4.2+dfsg-1 Β· LGPL-2.1-or-later
- fedora 43: openscap-utils 1:1.4.2-7.fc43 Β· LGPL-2.1-or-later
- fedora 43: openscap-utils 1:1.4.4-1.fc43
- fedora 43: openscap-utils 1:1.4.6-1.fc43 Β· LGPL-2.1-or-later
- fedora 44: openscap-utils 1:1.4.3-2.fc44 Β· LGPL-2.1-or-later
- fedora 44: openscap-utils 1:1.4.4-1.fc44
- fedora 44: openscap-utils 1:1.4.6-1.fc44 Β· LGPL-2.1-or-later
- nixos 26.05: openscap 1.4.2
- nixpkgs unstable: openscap 1.4.2
- opensuse-leap 16.0: openscap-utils 1.4.1-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: openscap-utils 1.4.1-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: openscap-utils 1.4.1-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: openscap-utils 1.4.1-160000.2.2 Β· LGPL-2.1-or-later
- ubuntu noble: openscap-utils 1.3.9+dfsg-1.1ubuntu2 Β· LGPL-2.1-or-later
- ubuntu questing: openscap-utils 1.4.2+dfsg-2
- ubuntu resolute: openscap-utils 1.4.3+dfsg-1build1 Β· LGPL-2.1-or-later
- ubuntu resolute: openscap-utils 1.4.3+dfsg-1ubuntu1 Β· LGPL-2.1-or-later
- ubuntu stonking: openscap-utils 1.4.4+dfsg-2 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms