apt-mark.8.xml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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. <!ENTITY % aptverbatiment SYSTEM "apt-verbatim.ent">
  7. %aptverbatiment;
  8. ]>
  9. <refentry>
  10. <refentryinfo>
  11. &apt-author.moconnor;
  12. &apt-author.team;
  13. &apt-email;
  14. &apt-product;
  15. <!-- The last update date -->
  16. <date>9 August 2009</date>
  17. </refentryinfo>
  18. <refmeta>
  19. <refentrytitle>apt-mark</refentrytitle>
  20. <manvolnum>8</manvolnum>
  21. <refmiscinfo class="manual">APT</refmiscinfo>
  22. </refmeta>
  23. <!-- Man page title -->
  24. <refnamediv>
  25. <refname>apt-mark</refname>
  26. <refpurpose>mark/unmark a package as being automatically-installed</refpurpose>
  27. </refnamediv>
  28. <!-- Arguments -->
  29. <refsynopsisdiv>
  30. <cmdsynopsis>
  31. <command>apt-mark</command>
  32. <arg><option>-hv</option></arg>
  33. <arg><option>-f=<replaceable>FILENAME</replaceable></option></arg>
  34. <group choice="plain">
  35. <arg choice="plain">
  36. <group choice="req">
  37. <arg choice="plain">markauto</arg>
  38. <arg choice="plain">unmarkauto</arg>
  39. </group>
  40. <arg choice="plain" rep="repeat"><replaceable>package</replaceable></arg>
  41. </arg>
  42. <arg choice="plain">showauto</arg>
  43. </group>
  44. </cmdsynopsis>
  45. </refsynopsisdiv>
  46. <refsect1><title>Description</title>
  47. <para><command>apt-mark</command> will change whether a package has
  48. been marked as being automatically installed.
  49. </para>
  50. <para>
  51. When you request that a package is installed, and as a result
  52. other packages are installed to satisfy its dependencies, the
  53. dependencies are marked as being automatically installed. Once
  54. these automatically installed packages are no longer depended on
  55. by any manually installed packages, they will be removed by e.g.
  56. <command>apt-get</command> or <command>aptitude</command>.
  57. </para>
  58. <variablelist>
  59. <varlistentry><term>markauto</term>
  60. <listitem><para><literal>markauto</literal> is used to mark a
  61. package as being automatically installed, which will cause the
  62. package to be removed when no more manually installed packages
  63. depend on this package.
  64. </para></listitem>
  65. </varlistentry>
  66. <varlistentry><term>unmarkauto</term>
  67. <listitem><para><literal>unmarkauto</literal> is used to mark a
  68. package as being manually installed, which will prevent the
  69. package from being automatically removed if no other packages
  70. depend on it.
  71. </para></listitem>
  72. </varlistentry>
  73. <varlistentry><term>showauto</term>
  74. <listitem><para><literal>showauto</literal> is used to print a
  75. list of automatically installed packages with each package on a new line.
  76. </para></listitem>
  77. </varlistentry>
  78. </variablelist>
  79. </refsect1>
  80. <refsect1><title>options</title>
  81. <variablelist>
  82. <varlistentry>
  83. <term><option>-f=<filename><replaceable>FILENAME</replaceable></filename></option></term>
  84. <term><option>--file=<filename><replaceable>FILENAME</replaceable></filename></option></term>
  85. <listitem><para>
  86. Read/Write package stats from <filename><replaceable>FILENAME</replaceable></filename>
  87. instead of the default location, which
  88. is <filename>extended_status</filename> in the directory defined
  89. by the Configuration Item: <literal>Dir::State</literal>.</para></listitem>
  90. </varlistentry>
  91. <varlistentry><term><option>-h</option></term>
  92. <term><option>--help</option></term>
  93. <listitem><para>Show a short usage summary.
  94. </para>
  95. </listitem>
  96. </varlistentry>
  97. <varlistentry>
  98. <term><option>-v</option></term>
  99. <term><option>--version</option></term>
  100. <listitem><para>Show the program version.
  101. </para>
  102. </listitem>
  103. </varlistentry>
  104. </variablelist>
  105. </refsect1>
  106. <refsect1><title>Files</title>
  107. <variablelist>
  108. &file-extended_states;
  109. </variablelist>
  110. </refsect1>
  111. <refsect1><title>See Also</title>
  112. <para>&apt-get;,&aptitude;,&apt-conf;</para>
  113. </refsect1>
  114. <refsect1><title>Diagnostics</title>
  115. <para><command>apt-mark</command> returns zero on normal operation, non-zero on error.</para>
  116. </refsect1>
  117. &manbugs;
  118. </refentry>