RPM-PAYLOADFLAGS(7)
β¨ rpm-payloadflags β RPM payload flags β¨
okay bestie, so this is a section 7 page from the Miscellaneous Information Manual and it's literally about how RPM squishes your package payload. no cap, it's more fun than it sounds π
π NAME π
rpm-payloadflags β RPM payload flags
πΈ SYNOPSIS πΈ
w[FLAGS].TYPE
π DESCRIPTION π
so the payload flags are what decide how the payload of an RPM package gets compressed when the package is built. simple as that. β¨
those flags get stored in the Payloadcompressor and Payloadflags tags of the package header, and those are what get used to figure out how to uncompress the payload contents during installation. it's giving "secrets stashed in the header that come back later". π
ngl that weird little syntax is directly inherited from librpm's Fopen() IO API, where w means opening a file for writing. so when you see the w just know it's an heirloom from the ancestors. π«Ά
these are the compression types that are supported, but heads up, availability may vary depending on how RPM was compiled:
ufdioβ uncompressed (yeah it's "compression" type, whatever, no thoughts)gzdioβ gzip (aka zlib)bzdioβ bzip2xzdioβ xzlzdioβ legacy lzmazstdioβ zstd
and the compression FLAGS? they must be listed in the following order, and can be any of:
<0-9>β compression level β works with all types (ufdioignores it though, it's unbothered π)T[0-N]β number of threads (no number or0= autodetect) β onlyxzdio,zstdioL<0-9>β window size (see--longinzstd(1)) β onlyzstdio
if a flag is omitted, the compressor's default value will be used. periodt. π§
a higher compression level generally means better compression ratio at the cost of increased resource use and compression times. so it's a whole tradeoff vibe check. β
T is equivalent to T0 and causes the number of threads to be automatically detected. but bestie hear me out β note that while using threads can speed up compression considerably, it typically causes the compression ratio to go down, and make the output less predictable. π₯
π EXAMPLES π
here's the mood board of modes:
w9.gzdioβ gzip level 9, default for package payloadw9.bzdioβ bzip2 level 9, bzip2's defaultw.xzdioβ xz default levelw7T16.xzdioβ xz level 7 using 16 threadsw7T0.xzdioβ xz level 7, autodetect no. of threadsw6.lzdioβ lzma (legacy) level 6, lzma's defaultw19T8.zstdioβ zstd level 19 using 8 threadsw7T.zstdioβ zstd level 7, autodetect no. of threadsw.ufdioβ uncompressed
π SEE ALSO π
okay so like, go forth and compress, main character. you got this. π π
and that's the whole page!! this was RPM 6.1.0 from 2026-08-20, section 7, RPM-PAYLOADFLAGS(7) β slay, bye bestie π¦ππΈ
π¦ where this page comes from
- ubuntu stonking: rpm 6.1.0-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms