Each index entry of an RPM header names a tag. This page lists every tag in the RPM project’s tag reference, in its groups and order, with the tag number and the data type (int32 is INT32, string array is STRING_ARRAY and so on). The signature tags are on the structure page.
Base package tags
| Tag | Number | Type |
|---|---|---|
| Name | 1000 | string |
| Version | 1001 | string |
| Release | 1002 | string |
| Epoch | 1003 | int32 |
| License | 1014 | string |
| Summary | 1004 | i18nstring |
| Description | 1005 | i18nstring |
| Os | 1021 | string |
| Arch | 1022 | string |
Informative package tags
| Tag | Number | Type |
|---|---|---|
| Buildhost | 1007 | string |
| Buildtime | 1006 | int32 |
| Bugurl | 5012 | string |
| Changelogname | 1081 | string array |
| Changelogtext | 1082 | string array |
| Changelogtime | 1080 | int32 array |
| Cookie | 1094 | string |
| Distribution | 1010 | string |
| Disttag | 1155 | string |
| Disturl | 1123 | string |
| Encoding | 5062 | string |
| Group | 1016 | i18nstring |
| Modularitylabel | 5096 | string |
| Optflags | 1122 | string |
| Packager | 1015 | string |
| Platform | 1132 | string |
| Policies | 1150 | string array |
| Policyflags | 5033 | int32 array |
| Policynames | 5030 | string array |
| Policytypes | 5031 | string array |
| Policytypesindexes | 5032 | int32 array |
| Rpmformat | 5114 | int32 |
| Rpmversion | 1064 | string |
| Sourcepkgid | 1146 | bin |
| Sourcerpm | 1044 | string |
| Translationurl | 5100 | string |
| UpstreamReleases | 5101 | string |
| Url | 1020 | string |
| Vcs | 5034 | string |
| Vendor | 1011 | string |
| Sourcenevr | 5120 | string |
Packages with files
| Tag | Number | Type |
|---|---|---|
| Archivesize | 1046 | int32 |
| Dirnames | 1118 | string array |
| Filedigestalgo | 5011 | int32 |
| Longarchivesize | 271 | int64 |
| Longsize | 5009 | int64 |
| Mimedict | 5116 | int32 |
| Payloadcompressor | 1125 | string |
| Payloadflags | 1126 | string |
| Payloadformat | 1124 | string |
| Prefixes | 1098 | string array |
| Size | 1009 | int32 |
Per-file information
| Tag | Number | Type |
|---|---|---|
| Basenames | 1117 | string array |
| Dirindexes | 1116 | int32 array |
| Filedevices | 1095 | int32 array |
| Filedigests | 1035 | string array |
| Fileflags | 1037 | int32 array |
| Filegroupname | 1040 | string array |
| Fileinodes | 1096 | int32 array |
| Filelangs | 1097 | string array |
| Filelinktos | 1036 | string array |
| Filemimeindex | 5115 | int32 array |
| Filemodes | 1030 | int16 array |
| Filemtimes | 1034 | int32 array |
| Filerdevs | 1033 | int16 array |
| Filesizes | 1028 | int32 array |
| Fileusername | 1039 | string array |
| Fileverifyflags | 1045 | int32 array |
| Longfilesizes | 5008 | int64 array |
Optional file information
| Tag | Number | Type |
|---|---|---|
| Classdict | 1142 | string array |
| Dependsdict | 1145 | int32 array |
| Filecaps | 5010 | string array |
| Fileclass | 1141 | int32 array |
| Filecolors | 1140 | int32 array |
| Filedependsn | 1144 | int32 array |
| Filedependsx | 1143 | int32 array |
| Filesignaturelength | 5091 | int32 |
| Filesignatures | 5090 | string array |
| Veritysignaturealgo | 277 | int32 |
| Veritysignatures | 276 | string array |
Dependencies
Hard dependencies
| Kind | …name | …version | …flags |
|---|---|---|---|
| Provide | 1047 | 1113 | 1112 |
| Require | 1049 | 1050 | 1048 |
| Conflict | 1054 | 1055 | 1053 |
| Obsolete | 1090 | 1115 | 1114 |
Soft dependencies
| Kind | …name | …version | …flags |
|---|---|---|---|
| Enhance | 5055 | 5056 | 5057 |
| Recommend | 5046 | 5047 | 5048 |
| Suggest | 5049 | 5050 | 5051 |
| Supplement | 5052 | 5053 | 5054 |
| Order | 5035 | 5036 | 5037 |
The …name and …version tags are string arrays and the
…flags tags int32 arrays (for example Requirename 1049, Requireversion
1050, Requireflags 1048).
Scriptlets
Each scriptlet has a script (string), flags (int32) and an interpreter program (string array).
| Scriptlet | Script | …flags | …prog |
|---|---|---|---|
| Pretrans | 1151 | 5024 | 1153 |
| Prein | 1023 | 5020 | 1085 |
| Postin | 1024 | 5021 | 1086 |
| Preun | 1025 | 5022 | 1087 |
| Postun | 1026 | 5023 | 1088 |
| Posttrans | 1152 | 5025 | 1154 |
| Preuntrans | 5103 | 5107 | 5105 |
| Postuntrans | 5104 | 5108 | 5106 |
| Verifyscript | 1079 | 5026 | 1091 |
Triggers
| Field | Triggers | File triggers | Transaction file triggers | Type |
|---|---|---|---|---|
| …scripts | 1065 | 5066 | 5076 | string array |
| …name | 1066 | 5069 | 5079 | string array |
| …version | 1067 | 5071 | 5081 | string array |
| …flags | 1068 | 5072 | 5082 | int32 array |
| …index | 1069 | 5070 | 5080 | int32 array |
| …scriptprog | 1092 | 5067 | 5077 | string array |
| …scriptflags | 5027 | 5068 | 5078 | int32 array |
| …priorities | — | 5084 | 5085 | int32 array |
Names: Triggerscripts, Filetriggerscripts, Transfiletriggerscripts and so on.
Signatures and digests
| Tag | Number | Type |
|---|---|---|
| Dsaheader | 267 | bin |
| Longsigsize | 270 | int64 |
| Openpgp | 278 | string array |
| Payloadsha256 | 5092 | string array |
| Payloadsha256algo | 5093 | int32 |
| Payloadsha256alt | 5097 | string array |
| Payloadsha512 | 5121 | string |
| Payloadsha512alt | 5122 | string |
| Payloadsha3_256 | 5123 | string |
| Payloadsha3_256alt | 5124 | string |
| Rsaheader | 268 | bin |
| Sha1header | 269 | string |
| Sha256header | 273 | string |
| Sha3_256_header | 279 | string |
| Siggpg | 262 | bin |
| Sigmd5 | 261 | bin |
| Sigpgp | 259 | bin |
| Sigsize | 257 | int32 |
Installed package headers only
| Tag | Number | Type |
|---|---|---|
| Filestates | 1029 | char array |
| Installcolor | 1127 | int32 |
| Installtid | 1128 | int32 |
| Installtime | 1008 | int32 |
| Instprefixes | 1099 | string array |
| Origbasenames | 1120 | string array |
| Origdirindexes | 1119 | int32 array |
| Origdirnames | 1121 | string array |
| Packagedigests | 5118 | string array |
| Packagedigestalgos | 5119 | int32 |
Source packages
| Tag | Number | Type |
|---|---|---|
| Buildarchs | 1089 | string array |
| Excludearch | 1059 | string array |
| Excludeos | 1060 | string array |
| Exclusivearch | 1061 | string array |
| Exclusiveos | 1062 | string array |
| Nopatch | 1052 | int32 array |
| Nosource | 1051 | int32 array |
| Patch | 1019 | string array |
| Source | 1018 | string array |
| Sourcepackage | 1106 | int32 |
| Spec | 5099 | string |
Internal and special
| Tag | Number | Type |
|---|---|---|
| Headeri18ntable | 100 | string array |
| Headerimmutable | 63 | bin |
| Pubkeys | 266 | string array |
Deprecated and obsolete
| Tag | Number | Type |
|---|---|---|
| Filecontexts | 1147 | string array |
| Fscontexts | 1148 | string array |
| Gif | 1012 | bin |
| Icon | 1043 | bin |
| Oldenhancesname | 1159 | string array |
| Oldenhancesversion | 1160 | string array |
| Oldenhancesflags | 1161 | int32 array |
| Oldfilenames | 1027 | string array |
| Oldsuggestsname | 1156 | string array |
| Oldsuggestsversion | 1157 | string array |
| Oldsuggestsflags | 1158 | int32 array |
| Patchesflags | 1134 | int32 array |
| Patchesname | 1133 | string array |
| Patchesversion | 1135 | string array |
| Recontexts | 1149 | string array |
| Removetid | 1129 | int32 |
| Xpm | 1013 | bin |
Aliases
Listed by the reference without numbers of their own: C, Conflicts, E, Enhances, Filemd5s, Hdrid, N, Obsoletes, O, Oldenhances, Oldsuggests, P, Pkgid, Provides, R, Recommends, Requires, Suggests, Supplements, V.
Extensions
The reference’s extension tags, with numbers:
| Tag | Number | Type |
|---|---|---|
| Archsuffix | 5098 | string |
| Dbinstance | 1195 | int32 |
| Epochnum | 5019 | int32 |
| Evr | 5013 | string |
| Headercolor | 5017 | int32 |
| Nevr | 5015 | string |
| Nevra | 5016 | string |
| Nvr | 5014 | string |
| Nvra | 1196 | string |
| Filenames | 5000 | string array |
| Filenlinks | 5045 | int32 array |
| Fileprovide | 5001 | string array |
| Filerequire | 5002 | string array |
| Instfilenames | 5040 | string array |
| Origfilenames | 5007 | string array |
| Providenevrs | 5042 | string array |
| Requirenevrs | 5041 | string array |
| Obsoletenevrs | 5043 | string array |
| Conflictnevrs | 5044 | string array |
| Recommendnevrs | 5058 | string array |
| Suggestnevrs | 5059 | string array |
| Supplementnevrs | 5060 | string array |
| Enhancenevrs | 5061 | string array |
| Sysusers | 5109 | string array |
| Triggerconds | 5005 | string array |
| Triggertype | 5006 | string array |
| Filetriggerconds | 5086 | string array |
| Filetriggertype | 5087 | string array |
| Transfiletriggerconds | 5088 | string array |
| Transfiletriggertype | 5089 | string array |
| Verbose | 5018 | int32 |
The reference also lists under extensions Fileclass (1141, as a string array), Openpgp (278) and Rpmformat (5114), which also appear as stored tags above, and Longfilesizes, Longarchivesize, Longsize and Longsigsize without numbers.
Flag values
Bit values from rpm’s own headers, rpmds.h and rpmfiles.h
(master branch, read 13 November 2026). Bit numbers count from 0.
Dependency flags (…flags of Requires, Provides, Conflicts, Obsoletes and the soft kinds)
| Bit | Value | Name | Meaning |
|---|---|---|---|
| — | 0 | RPMSENSE_ANY | No version comparison. |
| 1 | 0x2 | RPMSENSE_LESS | Version less than. |
| 2 | 0x4 | RPMSENSE_GREATER | Version greater than. |
| 3 | 0x8 | RPMSENSE_EQUAL | Version equal. Combined with the two above: less or equal, greater or equal. RPMSENSE_SENSEMASK is 15, the mask for these comparison bits. |
| 4 | — | unused | |
| 5 | 0x20 | RPMSENSE_POSTTRANS | %posttrans dependency. |
| 6 | 0x40 | RPMSENSE_PREREQ | Legacy prerequisite dependency. |
| 7 | 0x80 | RPMSENSE_PRETRANS | Pre-transaction dependency. |
| 8 | 0x100 | RPMSENSE_INTERP | Interpreter used by a scriptlet. |
| 9 | 0x200 | RPMSENSE_SCRIPT_PRE | %pre dependency. |
| 10 | 0x400 | RPMSENSE_SCRIPT_POST | %post dependency. |
| 11 | 0x800 | RPMSENSE_SCRIPT_PREUN | %preun dependency. |
| 12 | 0x1000 | RPMSENSE_SCRIPT_POSTUN | %postun dependency. |
| 13 | 0x2000 | RPMSENSE_SCRIPT_VERIFY | %verify dependency. |
| 14 | 0x4000 | RPMSENSE_FIND_REQUIRES | Generated by find-requires. |
| 15 | 0x8000 | RPMSENSE_FIND_PROVIDES | Generated by find-provides. |
| 16 | 0x10000 | RPMSENSE_TRIGGERIN | %triggerin dependency. |
| 17 | 0x20000 | RPMSENSE_TRIGGERUN | %triggerun dependency. |
| 18 | 0x40000 | RPMSENSE_TRIGGERPOSTUN | %triggerpostun dependency. |
| 19 | 0x80000 | RPMSENSE_MISSINGOK | Hint for suggests and enhances. |
| 20 | 0x100000 | RPMSENSE_PREUNTRANS | %preuntrans dependency. |
| 21 | 0x200000 | RPMSENSE_POSTUNTRANS | %postuntrans dependency. |
| 22–23 | — | unused | |
| 24 | 0x1000000 | RPMSENSE_RPMLIB | rpmlib(feature) dependency. |
| 25 | 0x2000000 | RPMSENSE_TRIGGERPREIN | %triggerprein dependency. |
| 26 | 0x4000000 | RPMSENSE_KEYRING | Keyring dependency (the header gives no further comment). |
| 27 | — | unused | |
| 28 | 0x10000000 | RPMSENSE_CONFIG | The header gives no comment. |
| 29 | 0x20000000 | RPMSENSE_META | Meta dependency. |
File attribute flags (Fileflags, 1037)
| Bit | Value | Name | Set by |
|---|---|---|---|
| 0 | 0x1 | RPMFILE_CONFIG | %config |
| 1 | 0x2 | RPMFILE_DOC | %doc |
| 2 | 0x4 | RPMFILE_ICON | “%donotuse” (an obsolete attribute) |
| 3 | 0x8 | RPMFILE_MISSINGOK | %config(missingok) |
| 4 | 0x10 | RPMFILE_NOREPLACE | %config(noreplace) |
| 5 | 0x20 | RPMFILE_SPECFILE | Marks the first file of a source package (the spec file) |
| 6 | 0x40 | RPMFILE_GHOST | %ghost |
| 7 | 0x80 | RPMFILE_LICENSE | %license |
| 8 | 0x100 | RPMFILE_README | %readme |
| 9–10 | — | unused | |
| 11 | 0x800 | RPMFILE_PUBKEY | %pubkey |
| 12 | 0x1000 | RPMFILE_ARTIFACT | %artifact |
File verification flags (Fileverifyflags, 1045)
| Bit | Name | Set by |
|---|---|---|
| 0 | RPMVERIFY_FILEDIGEST (the older name RPMVERIFY_MD5 is obsolete) | %verify(filedigest) |
| 1 | RPMVERIFY_FILESIZE | %verify(size) |
| 2 | RPMVERIFY_LINKTO | %verify(link) |
| 3 | RPMVERIFY_USER | %verify(user) |
| 4 | RPMVERIFY_GROUP | %verify(group) |
| 5 | RPMVERIFY_MTIME | %verify(mtime) |
| 6 | RPMVERIFY_MODE | %verify(mode) |
| 7 | RPMVERIFY_RDEV | %verify(rdev) |
| 8 | RPMVERIFY_CAPS | %verify(caps) |
| 9–14 | unused, reserved in the header for rpm’s own verify attributes | |
| 15 | RPMVERIFY_CONTEXTS | from --nocontexts (an rpm option, not stored in packages) |
| 16–27 | used inside rpm for other flag sets, not by this field | |
| 28–31 | failure results at verify time (READLINKFAIL 28, READFAIL 29, LSTATFAIL 30, LGETFILECONFAIL 31), not stored in packages | |
File states (Filestates, 1029, written on installation)
| Value | Name |
|---|---|
−1 | RPMFILE_STATE_MISSING (data unavailable) |
0 | RPMFILE_STATE_NORMAL |
1 | RPMFILE_STATE_REPLACED |
2 | RPMFILE_STATE_NOTINSTALLED |
3 | RPMFILE_STATE_NETSHARED |
4 | RPMFILE_STATE_WRONGCOLOR |
Scriptlet flags (the Prein, Postin, Preun, Postun, Pretrans, Posttrans, Verify and trigger script flags tags)
From lib/rpmscript.h of rpm 4.20.1 (enum rpmscriptFlags_e);
the tags are listed in the table above (for example RPMTAG_VERIFYSCRIPTFLAGS
5026 and RPMTAG_TRIGGERSCRIPTFLAGS 5027, an array).
| Bit | Value | Name | Meaning |
|---|---|---|---|
| — | 0 | RPMSCRIPT_FLAG_NONE | No flags. |
| 0 | 0x1 | RPMSCRIPT_FLAG_EXPAND | Macro expansion. |
| 1 | 0x2 | RPMSCRIPT_FLAG_QFORMAT | Header query-format expansion. |
| 2 | 0x4 | RPMSCRIPT_FLAG_CRITICAL | Critical for success or failure. |
The same header numbers the scriptlet types (rpm’s internal kinds of script,
not stored in a package): PREIN bit 0, PREUN 1,
POSTIN 2, POSTUN 3, TRIGGERPREIN 4,
TRIGGERIN 5, TRIGGERUN 6, TRIGGERPOSTUN 7,
PRETRANS 8, POSTTRANS 9, PREUNTRANS 10,
POSTUNTRANS 11, SYSUSERS 12 and VERIFY 24;
and the trigger modes NORMALTRIGGER bit 0, FILETRIGGER 1 and
TRANSFILETRIGGER 2.
Sources
include/rpm/rpmds.h and include/rpm/rpmfiles.h in the rpm
repository (raw files from the master branch, read 13 November 2026): the flag
tables above; lib/rpmscript.h of the rpm-4.20.1 tag for the scriptlet flags. RPM documentation, “RPM Tags” (rpm-software-management.github.io/rpm/manual/tags):
every tag, number, type and group. The meaning of each tag is given there and in rpmtag.h, and is not repeated here. The
row for Name (1000) was garbled in the copy read; its number is the one rpm assigns
to the first base tag.