297 lines
7.6 KiB
HTML
297 lines
7.6 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of APT-MARK</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>APT-MARK</H1>
|
|
Section: APT (8)<BR>Updated: 11 December 2018<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
apt-mark - show, set and unset various settings for a package
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="1">
|
|
<B>apt-mark</B> {<B>-f=</B><B></B><I>filename</I> | {auto | manual} <I>pkg</I>... | {showauto | showmanual} [<I>pkg</I>...] } | {-v | --version} | {-h | --help}
|
|
<DT id="2">
|
|
<B>apt-mark</B> {hold | unhold | install | remove | purge} <I>pkg</I>... | {showhold | showinstall | showremove | showpurge} [<I>pkg</I>...]
|
|
</DL>
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<P>
|
|
|
|
<B>apt-mark</B>
|
|
<DD>can be used as a unified front-end to set various settings for a package, such as marking a package as being automatically/manually installed or changing
|
|
<B>dpkg</B>
|
|
selections such as hold, install, deinstall and purge which are respected e.g. by
|
|
<B>apt-get dselect-upgrade</B>
|
|
or
|
|
<B>aptitude</B>.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>AUTOMATICALLY AND MANUALLY INSTALLED PACKAGES</H2>
|
|
|
|
<P>
|
|
|
|
When you request that a package is installed, and as a result other packages are installed to satisfy its dependencies, the dependencies are marked as being automatically installed, while the package you installed explicitly is marked as manually installed. Once an automatically installed package is no longer depended on by any manually installed package it is considered no longer needed and e.g.
|
|
<B>apt-get</B>
|
|
or
|
|
<B>aptitude</B>
|
|
will at least suggest removing them.
|
|
<P>
|
|
|
|
<B>auto</B>
|
|
<DL COMPACT><DT id="3"><DD>
|
|
auto
|
|
is used to mark a package as being automatically installed, which will cause the package to be removed when no more manually installed packages depend on this package.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>manual</B>
|
|
<DL COMPACT><DT id="4"><DD>
|
|
manual
|
|
is used to mark a package as being manually installed, which will prevent the package from being automatically removed if no other packages depend on it.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>minimize-manual</B>
|
|
<DL COMPACT><DT id="5"><DD>
|
|
minimize-manual
|
|
is used to mark (transitive) dependencies of metapackages as automatically installed. This can be used after an installation for example, to minimize the number of manually installed packages; or continuously on systems managed by system configuration metapackages.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>showauto</B>
|
|
<DL COMPACT><DT id="6"><DD>
|
|
showauto
|
|
is used to print a list of automatically installed packages with each package on a new line. All automatically installed packages will be listed if no package is given. If packages are given only those which are automatically installed will be shown.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>showmanual</B>
|
|
<DL COMPACT><DT id="7"><DD>
|
|
showmanual
|
|
can be used in the same way as
|
|
showauto
|
|
except that it will print a list of manually installed packages instead.
|
|
</DL>
|
|
|
|
<A NAME="lbAF"> </A>
|
|
<H3>Options</H3>
|
|
|
|
<P>
|
|
|
|
<B>-f=</B><B></B><I>filename</I>, <B>--file=</B><B></B><I>filename</I>
|
|
<DL COMPACT><DT id="8"><DD>
|
|
Read/Write package stats from the filename given with the parameter
|
|
<I>filename</I>
|
|
instead of from the default location, which is
|
|
extended_states
|
|
in the directory defined by the Configuration Item:
|
|
Dir::State.
|
|
</DL>
|
|
|
|
<A NAME="lbAG"> </A>
|
|
<H2>PREVENT CHANGES FOR A PACKAGE</H2>
|
|
|
|
<P>
|
|
|
|
<B>hold</B>
|
|
<DL COMPACT><DT id="9"><DD>
|
|
hold
|
|
is used to mark a package as held back, which will prevent the package from being automatically installed, upgraded or removed.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>unhold</B>
|
|
<DL COMPACT><DT id="10"><DD>
|
|
unhold
|
|
is used to cancel a previously set hold on a package to allow all actions again.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>showhold</B>
|
|
<DL COMPACT><DT id="11"><DD>
|
|
showhold
|
|
is used to print a list of packages on hold in the same way as for the other show commands.
|
|
</DL>
|
|
|
|
<A NAME="lbAH"> </A>
|
|
<H2>SCHEDULE PACKAGES FOR INSTALL, REMOVE AND PURGE</H2>
|
|
|
|
<P>
|
|
|
|
Some front-ends like
|
|
<B>apt-get dselect-upgrade</B>
|
|
can be used to apply previously scheduled changes to the install state of packages. Such changes can be scheduled with the
|
|
<B>install</B>,
|
|
<B>remove</B>
|
|
(also known as
|
|
<B>deinstall</B>) and
|
|
<B>purge</B>
|
|
commands. Packages with a specific selection can be displayed with
|
|
<B>showinstall</B>,
|
|
<B>showremove</B>
|
|
and
|
|
<B>showpurge</B>
|
|
respectively. More information about these so called dpkg selections can be found in
|
|
<B><A HREF="/cgi-bin/man/man2html?1+dpkg">dpkg</A></B>(1).
|
|
<A NAME="lbAI"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
<P>
|
|
|
|
<B>-h</B>, <B>--help</B>
|
|
<DL COMPACT><DT id="12"><DD>
|
|
Show a short usage summary.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-v</B>, <B>--version</B>
|
|
<DL COMPACT><DT id="13"><DD>
|
|
Show the program version.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-c</B>, <B>--config-file</B>
|
|
<DL COMPACT><DT id="14"><DD>
|
|
Configuration File; Specify a configuration file to use. The program will read the default configuration file and then this configuration file. If configuration settings need to be set before the default configuration files are parsed specify a file with the
|
|
<B>APT_CONFIG</B>
|
|
environment variable. See
|
|
<B><A HREF="/cgi-bin/man/man2html?5+apt.conf">apt.conf</A></B>(5)
|
|
for syntax information.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-o</B>, <B>--option</B>
|
|
<DL COMPACT><DT id="15"><DD>
|
|
Set a Configuration Option; This will set an arbitrary configuration option. The syntax is
|
|
<B>-o Foo::Bar=bar</B>.
|
|
<B>-o</B>
|
|
and
|
|
<B>--option</B>
|
|
can be used multiple times to set different options.
|
|
</DL>
|
|
|
|
<A NAME="lbAJ"> </A>
|
|
<H2>FILES</H2>
|
|
|
|
<P>
|
|
|
|
/var/lib/apt/extended_states
|
|
<DL COMPACT><DT id="16"><DD>
|
|
Status list of auto-installed packages. Configuration Item:
|
|
Dir::State::extended_states.
|
|
</DL>
|
|
|
|
<A NAME="lbAK"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<P>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?8+apt-get">apt-get</A></B>(8),<B><A HREF="/cgi-bin/man/man2html?8+aptitude">aptitude</A></B>(8),<B><A HREF="/cgi-bin/man/man2html?5+apt.conf">apt.conf</A></B>(5)
|
|
<A NAME="lbAL"> </A>
|
|
<H2>DIAGNOSTICS</H2>
|
|
|
|
<P>
|
|
|
|
<B>apt-mark</B>
|
|
returns zero on normal operation, non-zero on error.
|
|
<A NAME="lbAM"> </A>
|
|
<H2>BUGS</H2>
|
|
|
|
<P>
|
|
|
|
m[blue]<B>APT bug page</B>m[]<FONT SIZE="-2">[1]</FONT>. If you wish to report a bug in APT, please see
|
|
/usr/share/doc/debian/bug-reporting.txt
|
|
or the
|
|
<B><A HREF="/cgi-bin/man/man2html?1+reportbug">reportbug</A></B>(1)
|
|
command.
|
|
<A NAME="lbAN"> </A>
|
|
<H2>AUTHORS</H2>
|
|
|
|
<P>
|
|
|
|
<B>Mike O'Connor</B>
|
|
<DL COMPACT><DT id="17"><DD>
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>APT team</B>
|
|
<DL COMPACT><DT id="18"><DD>
|
|
</DL>
|
|
|
|
<A NAME="lbAO"> </A>
|
|
<H2>NOTES</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="19"> 1.<DD>
|
|
APT bug page
|
|
<DL COMPACT><DT id="20"><DD>
|
|
<A HREF="http://bugs.debian.org/src:apt">http://bugs.debian.org/src:apt</A>
|
|
</DL>
|
|
|
|
<P>
|
|
</DL>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="21"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="22"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="23"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="24"><A HREF="#lbAE">AUTOMATICALLY AND MANUALLY INSTALLED PACKAGES</A><DD>
|
|
<DL>
|
|
<DT id="25"><A HREF="#lbAF">Options</A><DD>
|
|
</DL>
|
|
<DT id="26"><A HREF="#lbAG">PREVENT CHANGES FOR A PACKAGE</A><DD>
|
|
<DT id="27"><A HREF="#lbAH">SCHEDULE PACKAGES FOR INSTALL, REMOVE AND PURGE</A><DD>
|
|
<DT id="28"><A HREF="#lbAI">OPTIONS</A><DD>
|
|
<DT id="29"><A HREF="#lbAJ">FILES</A><DD>
|
|
<DT id="30"><A HREF="#lbAK">SEE ALSO</A><DD>
|
|
<DT id="31"><A HREF="#lbAL">DIAGNOSTICS</A><DD>
|
|
<DT id="32"><A HREF="#lbAM">BUGS</A><DD>
|
|
<DT id="33"><A HREF="#lbAN">AUTHORS</A><DD>
|
|
<DT id="34"><A HREF="#lbAO">NOTES</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:06:11 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|