xref: /freebsd/contrib/file/magic/Magdir/rpm (revision 06690044dac183ea1d93c2ae227e261da3bdca2a)
1 
2 #------------------------------------------------------------------------------
3 # $File: rpm,v 1.13 2023/10/31 21:46:28 christos Exp $
4 #
5 # RPM: file(1) magic for Red Hat Packages   Erik Troan (ewt@redhat.com)
6 #
7 0	belong		0xedabeedb	RPM
8 !:mime	application/x-rpm
9 >4	byte		x		v%d
10 >5	byte		x		\b.%d
11 >6	beshort		1		src
12 >6	beshort		0		bin
13 >>8	beshort		1		i386/x86_64
14 >>8	beshort		2		Alpha/Sparc64
15 >>8	beshort		3		Sparc
16 >>8	beshort		4		MIPS
17 >>8	beshort		5		PowerPC
18 >>8	beshort		6		68000
19 >>8	beshort		7		SGI
20 >>8	beshort		8		RS6000
21 >>8	beshort		9		IA64
22 >>8	beshort		10		Sparc64
23 >>8	beshort		11		MIPSel
24 >>8	beshort		12		ARM
25 >>8	beshort		13		MiNT
26 >>8	beshort		14		S/390
27 >>8	beshort		15		S/390x
28 >>8	beshort		16		PowerPC64
29 >>8	beshort		17		SuperH
30 >>8	beshort		18		Xtensa
31 >>8	beshort		19		AArch64
32 >>8	beshort		20		MIPSr6
33 >>8	beshort		21		MIPS64r6
34 >>8	beshort		22		RISC-V64
35 >>8	beshort		23		LoongArch64
36 >>8	beshort		255		noarch
37 
38 #delta RPM    Daniel Novotny (dnovotny@redhat.com)
39 0	string		drpm		Delta RPM
40 !:mime  application/x-rpm
41 >12	string 	x	%s
42 >>8	beshort		11		MIPSel
43 >>8	beshort		12		ARM
44 >>8	beshort		13		MiNT
45 >>8	beshort		14		S/390
46 >>8	beshort		15		S/390x
47 >>8	beshort		16		PowerPC64
48 >>8	beshort		17		SuperH
49 >>8	beshort		18		Xtensa
50 >>8	beshort		19		AArch64
51 >>8	beshort		20		MIPSr6
52 >>8	beshort		21		MIPS64r6
53 >>8	beshort		22		RISC-V64
54 >>8	beshort		23		LoongArch64
55 >>10	string		x		%s
56