Module: Omnizip::Formats::Rpm::Constants

Included in:
Entry, Header, Lead, Reader, Tag, Writer
Defined in:
lib/omnizip/formats/rpm/constants.rb

Overview

RPM format constants

Defines magic numbers, header constants, and type definitions for RPM package parsing.

Constant Summary collapse

LEAD_MAGIC =

RPM lead magic bytes

"\xed\xab\xee\xdb".b
HEADER_MAGIC =

RPM header magic bytes (8 bytes)

"\x8e\xad\xe8\x01\x00\x00\x00\x00".b
LEAD_SIZE =

Lead structure size (96 bytes)

96
HEADER_HEADER_SIZE =

Header header size (16 bytes: magic + index_count + data_length)

16
TAG_ENTRY_SIZE =

Tag entry size (16 bytes: tag + type + offset + count)

16
HEADER_SIGNED_TYPE =

Header signed type (signature present)

5
PACKAGE_BINARY =

Package types

0
PACKAGE_SOURCE =
1
FLAG_LESS =

Dependency flags

(1 << 1)
FLAG_GREATER =
(1 << 2)
FLAG_EQUAL =
(1 << 3)
FILE_CONFIG =

File flags

(1 << 0)
FILE_DOC =
(1 << 1)
FILE_LICENSE =
(1 << 3)
FILE_README =
(1 << 4)
TYPE_NULL =

Tag types

0
TYPE_CHAR =
1
TYPE_INT8 =
2
TYPE_INT16 =
3
TYPE_INT32 =
4
TYPE_INT64 =
5
TYPE_STRING =
6
TYPE_BINARY =
7
TYPE_STRING_ARRAY =
8
TYPE_I18NSTRING =
9