apt-mark.8.xml 4.1 KB

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