apt-mark.8.xml 4.8 KB

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