1*a5d223e6SXin LI 2*a5d223e6SXin LI#------------------------------------------------------------------------------ 3*a5d223e6SXin LI# $File: apt,v 1.1 2016/10/17 19:51:57 christos Exp $ 4*a5d223e6SXin LI# apt: file(1) magic for APT Cache files 5*a5d223e6SXin LI# <http://www.fifi.org/doc/libapt-pkg-doc/cache.html/ch2.html> 6*a5d223e6SXin LI# <https://anonscm.debian.org/cgit/apt/apt.git/tree/apt-pkg/pkgcache.h#n292> 7*a5d223e6SXin LI 8*a5d223e6SXin LI# before version 10 ("old format"), data was in arch-specific long/short 9*a5d223e6SXin LI 10*a5d223e6SXin LI# old format 64 bit 11*a5d223e6SXin LI0 name apt-cache-64bit-be 12*a5d223e6SXin LI>12 beshort 1 \b, dirty 13*a5d223e6SXin LI>40 bequad x \b, %llu packages 14*a5d223e6SXin LI>48 bequad x \b, %llu versions 15*a5d223e6SXin LI 16*a5d223e6SXin LI# old format 32 bit 17*a5d223e6SXin LI0 name apt-cache-32bit-be 18*a5d223e6SXin LI>8 beshort 1 \b, dirty 19*a5d223e6SXin LI>40 belong x \b, %u packages 20*a5d223e6SXin LI>44 belong x \b, %u versions 21*a5d223e6SXin LI 22*a5d223e6SXin LI# new format 23*a5d223e6SXin LI0 name apt-cache-be 24*a5d223e6SXin LI>6 byte 1 \b, dirty 25*a5d223e6SXin LI>24 belong x \b, %u packages 26*a5d223e6SXin LI>28 belong x \b, %u versions 27*a5d223e6SXin LI 28*a5d223e6SXin LI0 bequad 0x98FE76DC 29*a5d223e6SXin LI>8 ubeshort <10 APT cache data, version %u 30*a5d223e6SXin LI>>10 beshort x \b.%u, 64 bit big-endian 31*a5d223e6SXin LI>>0 use apt-cache-64bit-be 32*a5d223e6SXin LI 33*a5d223e6SXin LI0 lequad 0x98FE76DC 34*a5d223e6SXin LI>8 uleshort <10 APT cache data, version %u 35*a5d223e6SXin LI>>10 leshort x \b.%u, 64 bit little-endian 36*a5d223e6SXin LI>>0 use \^apt-cache-64bit-be 37*a5d223e6SXin LI 38*a5d223e6SXin LI0 belong 0x98FE76DC 39*a5d223e6SXin LI>4 ubeshort <10 APT cache data, version %u 40*a5d223e6SXin LI>>6 ubeshort x \b.%u, 32 bit big-endian 41*a5d223e6SXin LI>>0 use apt-cache-32bit-be 42*a5d223e6SXin LI>4 ubyte >9 APT cache data, version %u 43*a5d223e6SXin LI>>5 ubyte x \b.%u, big-endian 44*a5d223e6SXin LI>>0 use apt-cache-be 45*a5d223e6SXin LI 46*a5d223e6SXin LI0 lelong 0x98FE76DC 47*a5d223e6SXin LI>4 uleshort <10 APT cache data, version %u 48*a5d223e6SXin LI>>6 uleshort x \b.%u, 32 bit little-endian 49*a5d223e6SXin LI>>0 use \^apt-cache-32bit-be 50*a5d223e6SXin LI>4 ubyte >9 APT cache data, version %u 51*a5d223e6SXin LI>>5 ubyte x \b.%u, little-endian 52*a5d223e6SXin LI>>0 use \^apt-cache-be 53