apt-mark.8.xml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
  4. <!ENTITY % aptent SYSTEM "apt.ent">
  5. %aptent;
  6. ]>
  7. <refentry>
  8. <refentryinfo>
  9. &apt-author.moconnor;
  10. &apt-author.team;
  11. &apt-email;
  12. &apt-product;
  13. <!-- The last update date -->
  14. <date>2 November 2007</date>
  15. </refentryinfo>
  16. <refmeta>
  17. <refentrytitle>apt-mark</refentrytitle>
  18. <manvolnum>8</manvolnum>
  19. </refmeta>
  20. <!-- Man page title -->
  21. <refnamediv>
  22. <refname>apt-mark</refname>
  23. <refpurpose>mark/unmark a package as being automatically-installed</refpurpose>
  24. </refnamediv>
  25. <!-- Arguments -->
  26. <refsynopsisdiv>
  27. <cmdsynopsis>
  28. <command>apt-mark</command>
  29. <arg><option>-hv</option></arg>
  30. <arg><option>-f=<replaceable>FILENAME</replaceable></option></arg>
  31. <group choice="req"><arg>markauto</arg><arg>unmarkauto</arg></group>
  32. <arg choice="plain" rep="repeat"><replaceable>package</replaceable></arg>
  33. </cmdsynopsis>
  34. </refsynopsisdiv>
  35. <refsect1><title>Description</title>
  36. <para><command>apt-mark</command> will change whether a package has
  37. been marked as being automatically installed.
  38. </para>
  39. <para>
  40. When you request that a package is installed, and as a result
  41. other packages are installed to satisfy its dependencies, the
  42. dependencies are marked as being automatically installed. Once
  43. these automatically installed packages are no longer depended on
  44. by any manually installed packages, they will be removed.
  45. </para>
  46. <variablelist>
  47. <varlistentry><term>markauto</term>
  48. <listitem><para><literal>markauto</literal> is used to mark a
  49. package as being automatically installed, which will cause the
  50. package to be removed when no more manually installed packages
  51. depend on this package.
  52. </para></listitem>
  53. </varlistentry>
  54. <varlistentry><term>unmarkauto</term>
  55. <listitem><para><literal>unmarkauto</literal> is used to mark a
  56. package as being manually installed, which will prevent the
  57. package from being automatically removed if no other packages
  58. depend on it.
  59. </para></listitem>
  60. </varlistentry>
  61. </variablelist>
  62. </refsect1>
  63. <refsect1><title>options</title>
  64. <variablelist>
  65. <varlistentry><term><option>-f=<filename>FILENAME</filename></option></term><term><option>--file=<filename>FILENAME</filename></option></term>
  66. <listitem><para>
  67. Read/Write package stats from <filename>FILENAME</filename>
  68. instead of the default location, which
  69. is <filename>extended_status</filename> in the directory defined
  70. by the Configuration Item: <literal>Dir::State</literal>.</para></listitem>
  71. </varlistentry>
  72. <varlistentry><term><option>-h</option></term>
  73. <term><option>--help</option></term>
  74. <listitem><para>Show a short usage summary.
  75. </para>
  76. </listitem>
  77. </varlistentry>
  78. <varlistentry>
  79. <term><option>-v</option></term>
  80. <term><option>--version</option></term>
  81. <listitem><para>Show the program version.
  82. </para>
  83. </listitem>
  84. </varlistentry>
  85. </variablelist>
  86. </refsect1>
  87. <refsect1><title>See Also</title>
  88. <para>&apt-conf;</para>
  89. </refsect1>
  90. <refsect1><title>Diagnostics</title>
  91. <para><command>apt-mark</command> returns zero on normal operation, non-zero on error.</para>
  92. </refsect1>
  93. &manbugs;
  94. </refentry>