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