rpm-payloadflags - Man Page

RPM payload flags

Synopsis

w[FLAGS].​TYPE

Description

The payload flags determine how the payload of an RPM package is compressed when the package is built.​ The flags are stored in the Payloadcompressor and Payloadflags tags of the package header, which are used to determine how to uncompress the payload contents during installation.​

The peculiar syntax is directly inherited from librpm'​s Fopen() IO API, where w means opening a file for writing.​

The following compression types are supported, but availability may vary depending on how RPM was compiled.​

TYPEDescription
ufdiouncompressed
gzdiogzip (aka zlib)
bzdiobzip2
xzdioxz
lzdiolegacy lzma
zstdiozstd

The compression FLAGS must be listed in the following order and can be any of:

FLAGSDescriptionTypes
<0-9>compression levelall (ufdio ignores)
T[0-N]number of threads (no number or 0 = autodetect)xzdio, zstdio
L<0-9>window size(see --long in zstd(1))zstdio

If a flag is omitted, the compressor'​s default value will be used.​

A higher compression level generally means better compression ratio at the cost of increased resource use and compression times.​

T is equivalent to T0 and causes the number of threads to be automatically detected.​ 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

ModeDescription
w9.​gzdiogzip level 9, default for package payload
w9.​bzdiobzip2 level 9, bzip2'​s default
w.​xzdioxz default level
w7T16.​xzdioxz level 7 using 16 threads
w7T0.​xzdioxz level 7, autodetect no.​ of threads
w6.​lzdiolzma (legacy) level 6, lzma'​s default
w19T8.​zstdiozstd level 19 using 8 threads
w7T.​zstdiozstd level 7, autodetect no.​ of threads
w.​ufdiouncompressed

See Also

rpmbuild-config(5), rpm-config(5)

http://www.​rpm.​org/

Info

2026-08-20 RPM 6.1.0