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
| Offset | Size | Type | Field | Notes |
|---|---|---|---|---|
| 0x0 | 3 | bytes | โ | |
| 0x8 | 4 | u32 BE | Count | |
| 0xC | 4 | u32 BE | Size |
Constants
General RpmArchiveModule
| Name | Value | Type | Notes |
|---|---|---|---|
| Magic | [0xED, 0xAB, 0xEE, 0xDB] | byte[] | |
| HeaderMagic | [0x8E, 0xAD, 0xE8] | byte[] |