apt-sortpkgs.1.xml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  4. <!ENTITY % aptent SYSTEM "apt.ent"> %aptent;
  5. <!ENTITY % aptverbatiment SYSTEM "apt-verbatim.ent"> %aptverbatiment;
  6. <!ENTITY % aptvendor SYSTEM "apt-vendor.ent"> %aptvendor;
  7. ]>
  8. <refentry>
  9. <refentryinfo>
  10. &apt-author.jgunthorpe;
  11. &apt-author.team;
  12. &apt-email;
  13. &apt-product;
  14. <!-- The last update date -->
  15. <date>2013-11-30T00:00:00Z</date>
  16. </refentryinfo>
  17. <refmeta>
  18. <refentrytitle>apt-sortpkgs</refentrytitle>
  19. <manvolnum>1</manvolnum>
  20. <refmiscinfo class="manual">APT</refmiscinfo>
  21. </refmeta>
  22. <!-- Man page title -->
  23. <refnamediv>
  24. <refname>apt-sortpkgs</refname>
  25. <refpurpose>Utility to sort package index files</refpurpose>
  26. </refnamediv>
  27. &synopsis-command-apt-sortpkgs;
  28. <refsect1><title>Description</title>
  29. <para><command>apt-sortpkgs</command> will take an index file (source index or package
  30. index) and sort the records so that they are ordered by the package name.
  31. It will also sort the internal fields of each record according to the
  32. internal sorting rules.</para>
  33. <para>
  34. All output is sent to standard output; the input must be a seekable file.</para>
  35. </refsect1>
  36. <refsect1><title>options</title>
  37. &apt-cmdblurb;
  38. <variablelist>
  39. <varlistentry><term><option>-s</option></term><term><option>--source</option></term>
  40. <listitem><para>
  41. Use source index field ordering.
  42. Configuration Item: <literal>APT::SortPkgs::Source</literal>.</para></listitem>
  43. </varlistentry>
  44. &apt-commonoptions;
  45. </variablelist>
  46. </refsect1>
  47. <refsect1><title>See Also</title>
  48. <para>&apt-conf;</para>
  49. </refsect1>
  50. <refsect1><title>Diagnostics</title>
  51. <para><command>apt-sortpkgs</command> returns zero on normal operation, decimal 100 on error.</para>
  52. </refsect1>
  53. &manbugs;
  54. </refentry>