summaryrefslogtreecommitdiff
path: root/doc/apt-patterns.7.xml
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2019-08-15 13:12:43 +0200
committerJulian Andres Klode <julian.klode@canonical.com>2019-08-15 20:21:34 +0200
commit083e72a5939d33dc1fd7596aa441a9982332f776 (patch)
treeb50d465b812d8155af0a79e994f0bd7ad8d73534 /doc/apt-patterns.7.xml
parentc64a85dd7524546864603b955f601bf64c9a4bcf (diff)
Add ?automatic and ?garbage patterns
These patterns allow you to identify automatically installed packages, as well as automatically installed packages that are no longer reachable from the manually installed ones.
Diffstat (limited to 'doc/apt-patterns.7.xml')
-rw-r--r--doc/apt-patterns.7.xml11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/apt-patterns.7.xml b/doc/apt-patterns.7.xml
index 5aa352f03..327ea17d5 100644
--- a/doc/apt-patterns.7.xml
+++ b/doc/apt-patterns.7.xml
@@ -69,6 +69,12 @@
<varlistentry><term><code>?architecture(WILDCARD)</code></term>
<listitem><para>Selects packages matching the specified architecture, which may contain wildcards using any.</para></listitem>
</varlistentry>
+ <varlistentry><term><code>?automatic</code></term>
+ <listitem><para>Selects packages that were installed automatically.</para></listitem>
+ </varlistentry>
+ <varlistentry><term><code>?garbage</code></term>
+ <listitem><para>Selects packages that can be removed automatically.</para></listitem>
+ </varlistentry>
<varlistentry><term><code>?name(REGEX)</code></term>
<listitem><para>Selects packages where the name matches the given regular expression.</para></listitem>
</varlistentry>
@@ -77,6 +83,11 @@
<refsect1><title>Examples</title>
+ <variablelist>
+ <varlistentry><term><code>apt remove ?garbage</code></term>
+ <listitem><para>Remove all packages that are automatically installed and no longer needed - same as apt autoremove</para></listitem>
+ </varlistentry>
+ </variablelist>
</refsect1>
<refsect1><title>Migrating from aptitude</title>