apt 1.6 KB

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