RPM Package (.rpm)

Red Hat package format.

Overview

An RPM file has a 96-byte lead (magic ED AB EE DB), a signature header, a metadata header (both with the magic 8E AD E8) and a compressed payload, usually a cpio archive compressed with gzip, xz or zstd.

Where it is used

  • Red Hat, Fedora, SUSE and other Linux distributions.

History

  • Created by Red Hat in 1995.

Status today

  • Actively used and maintained.

Structures read by the implementation

Offsets are in bytes from the start of the buffer named in each heading. Field names are taken from the implementation and are not an official specification. Fixed-width integers are shown as u/i (unsigned/signed) followed by bit width and byte order.

RpmArchiveModule.HeaderEnd buffer h ยท RpmArchiveModule.cs

OffsetSizeTypeFieldNotes
0x03bytesโ€“
0x84u32 BECount
0xC4u32 BESize

Constants

General RpmArchiveModule

NameValueTypeNotes
Magic[0xED, 0xAB, 0xEE, 0xDB]byte[]
HeaderMagic[0x8E, 0xAD, 0xE8]byte[]
Structures and constants were extracted from: Modules/FileSystems/RpmArchiveModule.cs. Prose sections are a summary from public sources; verify details before relying on them.