apt-mark.8.xml 4.3 KB

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