apt-mark.8.xml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  4. <!ENTITY % aptent SYSTEM "apt.ent">
  5. %aptent;
  6. <!ENTITY % aptverbatiment SYSTEM "apt-verbatim.ent">
  7. %aptverbatiment;
  8. <!ENTITY % aptvendor SYSTEM "apt-vendor.ent">
  9. %aptvendor;
  10. ]>
  11. <refentry>
  12. <refentryinfo>
  13. &apt-author.moconnor;
  14. &apt-author.team;
  15. &apt-email;
  16. &apt-product;
  17. <!-- The last update date -->
  18. <date>2012-06-09T00:00:00Z</date>
  19. </refentryinfo>
  20. <refmeta>
  21. <refentrytitle>apt-mark</refentrytitle>
  22. <manvolnum>8</manvolnum>
  23. <refmiscinfo class="manual">APT</refmiscinfo>
  24. </refmeta>
  25. <!-- Man page title -->
  26. <refnamediv>
  27. <refname>apt-mark</refname>
  28. <refpurpose>mark/unmark a package as being automatically-installed</refpurpose>
  29. </refnamediv>
  30. &synopsis-command-apt-mark;
  31. <refsect1><title>Description</title>
  32. <para><command>apt-mark</command> will change whether a package has
  33. been marked as being automatically installed.
  34. </para>
  35. <para>
  36. When you request that a package is installed, and as a result
  37. other packages are installed to satisfy its dependencies, the
  38. dependencies are marked as being automatically installed. Once
  39. these automatically installed packages are no longer depended on
  40. by any manually installed packages, they will be removed by e.g.
  41. <command>apt-get</command> or <command>aptitude</command>.
  42. </para>
  43. <variablelist>
  44. <varlistentry><term><option>auto</option></term>
  45. <listitem><para><literal>auto</literal> is used to mark a
  46. package as being automatically installed, which will cause the
  47. package to be removed when no more manually installed packages
  48. depend on this package.
  49. </para></listitem>
  50. </varlistentry>
  51. <varlistentry><term><option>manual</option></term>
  52. <listitem><para><literal>manual</literal> is used to mark a
  53. package as being manually installed, which will prevent the
  54. package from being automatically removed if no other packages
  55. depend on it.
  56. </para></listitem>
  57. </varlistentry>
  58. <varlistentry><term><option>hold</option></term>
  59. <listitem><para><literal>hold</literal> is used to mark a
  60. package as held back, which will prevent the package from being
  61. automatically installed, upgraded or removed.
  62. The command is only a wrapper around <command>dpkg --set-selections</command>
  63. and the state is therefore maintained by &dpkg; and not affected
  64. by the <option>--file</option> option.
  65. </para></listitem>
  66. </varlistentry>
  67. <varlistentry><term><option>unhold</option></term>
  68. <listitem><para><literal>unhold</literal> is used to cancel a
  69. previously set hold on a package to allow all actions again.
  70. </para></listitem>
  71. </varlistentry>
  72. <varlistentry><term><option>showauto</option></term>
  73. <listitem><para><literal>showauto</literal> is used to print a
  74. list of automatically installed packages with each package on a new line.
  75. All automatically installed packages will be listed if no package is given.
  76. If packages are given only those which are automatically installed will be shown.
  77. </para></listitem>
  78. </varlistentry>
  79. <varlistentry><term><option>showmanual</option></term>
  80. <listitem><para><literal>showmanual</literal> can be used in
  81. the same way as <literal>showauto</literal> except that it will print
  82. a list of manually installed packages instead.
  83. </para></listitem>
  84. </varlistentry>
  85. <varlistentry><term><option>showhold</option></term>
  86. <listitem><para><literal>showhold</literal> is used to print a list
  87. of packages on hold in the same way as for the other show commands.
  88. </para></listitem>
  89. </varlistentry>
  90. </variablelist>
  91. </refsect1>
  92. <refsect1><title>options</title>
  93. <variablelist>
  94. <varlistentry>
  95. <term><option>-f=&synopsis-param-filename;</option></term>
  96. <term><option>--file=&synopsis-param-filename;</option></term>
  97. <listitem><para>
  98. Read/Write package stats from the filename given with the parameter
  99. &synopsis-param-filename; instead of from the default location, which
  100. is <filename>extended_status</filename> in the directory defined
  101. by the Configuration Item: <literal>Dir::State</literal>.</para></listitem>
  102. </varlistentry>
  103. &apt-commonoptions;
  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><phrase>&apt-get;,&aptitude;,&apt-conf;</phrase></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>