apt-mark.8.xml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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>9 August 2009</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="plain">
  32. <arg choice="plain">
  33. <group choice="req">
  34. <arg choice="plain">markauto</arg>
  35. <arg choice="plain">unmarkauto</arg>
  36. </group>
  37. <arg choice="plain" rep="repeat"><replaceable>package</replaceable></arg>
  38. </arg>
  39. <arg choice="plain">showauto</arg>
  40. </group>
  41. </cmdsynopsis>
  42. </refsynopsisdiv>
  43. <refsect1><title>Description</title>
  44. <para><command>apt-mark</command> will change whether a package has
  45. been marked as being automatically installed.
  46. </para>
  47. <para>
  48. When you request that a package is installed, and as a result
  49. other packages are installed to satisfy its dependencies, the
  50. dependencies are marked as being automatically installed. Once
  51. these automatically installed packages are no longer depended on
  52. by any manually installed packages, they will be removed by e.g.
  53. <command>apt-get</command> or <command>aptitude</command>.
  54. </para>
  55. <variablelist>
  56. <varlistentry><term>markauto</term>
  57. <listitem><para><literal>markauto</literal> is used to mark a
  58. package as being automatically installed, which will cause the
  59. package to be removed when no more manually installed packages
  60. depend on this package.
  61. </para></listitem>
  62. </varlistentry>
  63. <varlistentry><term>unmarkauto</term>
  64. <listitem><para><literal>unmarkauto</literal> is used to mark a
  65. package as being manually installed, which will prevent the
  66. package from being automatically removed if no other packages
  67. depend on it.
  68. </para></listitem>
  69. </varlistentry>
  70. <varlistentry><term>showauto</term>
  71. <listitem><para><literal>showauto</literal> is used to print a
  72. list of manually installed packages with each package on a new line.
  73. </para></listitem>
  74. </varlistentry>
  75. </variablelist>
  76. </refsect1>
  77. <refsect1><title>options</title>
  78. <variablelist>
  79. <varlistentry>
  80. <term><option>-f=<filename><replaceable>FILENAME</replaceable></filename></option></term>
  81. <term><option>--file=<filename><replaceable>FILENAME</replaceable></filename></option></term>
  82. <listitem><para>
  83. Read/Write package stats from <filename><replaceable>FILENAME</replaceable></filename>
  84. instead of the default location, which
  85. is <filename>extended_status</filename> in the directory defined
  86. by the Configuration Item: <literal>Dir::State</literal>.</para></listitem>
  87. </varlistentry>
  88. <varlistentry><term><option>-h</option></term>
  89. <term><option>--help</option></term>
  90. <listitem><para>Show a short usage summary.
  91. </para>
  92. </listitem>
  93. </varlistentry>
  94. <varlistentry>
  95. <term><option>-v</option></term>
  96. <term><option>--version</option></term>
  97. <listitem><para>Show the program version.
  98. </para>
  99. </listitem>
  100. </varlistentry>
  101. </variablelist>
  102. </refsect1>
  103. <refsect1><title>Files</title>
  104. <variablelist>
  105. <varlistentry><term><filename>/var/lib/apt/extended_states</filename></term>
  106. <listitem><para>Status list of auto-installed packages.
  107. Configuration Item: <literal>Dir::State</literal>
  108. sets the path to the <filename>extended_states</filename> file.
  109. </para></listitem>
  110. </varlistentry>
  111. </variablelist>
  112. </refsect1>
  113. <refsect1><title>See Also</title>
  114. <para>&apt-get;,&aptitude;,&apt-conf;</para>
  115. </refsect1>
  116. <refsect1><title>Diagnostics</title>
  117. <para><command>apt-mark</command> returns zero on normal operation, non-zero on error.</para>
  118. </refsect1>
  119. &manbugs;
  120. </refentry>