From 7e22425c2cf937fd45160c6bbbda9210ea5d52ba Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Thu, 15 Aug 2019 11:19:20 +0200 Subject: doc: Add apt-patterns(7) manual page This does not describe much yet, as there's not much to talk about. --- doc/CMakeLists.txt | 1 + doc/apt-patterns.7.xml | 87 ++++++++++++++++++++++++++++++++++++++++++++++++++ doc/po4a.conf | 1 + 3 files changed, 89 insertions(+) create mode 100644 doc/apt-patterns.7.xml (limited to 'doc') diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index 7cca4cf81..3060949e5 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -82,6 +82,7 @@ add_docbook(apt-man MANPAGE ALL apt-key.8.xml apt-mark.8.xml apt_preferences.5.xml + apt-patterns.7.xml apt-secure.8.xml apt-sortpkgs.1.xml apt-transport-http.1.xml diff --git a/doc/apt-patterns.7.xml b/doc/apt-patterns.7.xml new file mode 100644 index 000000000..079c493e4 --- /dev/null +++ b/doc/apt-patterns.7.xml @@ -0,0 +1,87 @@ + + %aptent; + %aptverbatiment; + %aptvendor; +]> + + + + &apt-author.jgunthorpe; + &apt-author.team; + &apt-email; + &apt-product; + + 2019-08-15T00:00:00Z + + + + apt-patterns + 7 + APT + + + + + apt-patterns + Syntax and semantics of apt search patterns + + + Description + + Starting with version 2.0, APT provides support for + patterns, which can be used to query the apt cache for packages. + + + + + Syntax + + + + + + Examples + + + Migrating from aptitude + + Patterns in apt are heavily inspired by patterns in aptitude, but with some tweaks: + + + + Only long forms — the ones starting with ? — are supported + + + + Syntax is uniform: If there is an opening parenthesis after a term, it is always assumed to be the beginning of an argument list. + + + In aptitude, a syntactic form "?foo(bar)" could mean "?and(?foo,bar)" if foo does not take an argument. In APT, this will cause an error. + + + + Not all patterns are supported. + + + Some additional patterns are available, for example, for finding gstreamer codecs. + + + Escaping terms with ~ is not supported. + + + A trailing comma is allowed in argument lists + + + + + See Also + + &apt-get;, &apt; + + + + &manbugs; + &manauthor; + diff --git a/doc/po4a.conf b/doc/po4a.conf index 587215abc..1cf170b80 100644 --- a/doc/po4a.conf +++ b/doc/po4a.conf @@ -30,6 +30,7 @@ [type: manpage] apt-transport-http.1.xml $lang:$lang/apt-transport-http.$lang.1.xml add_$lang:xml.add [type: manpage] apt-transport-https.1.xml $lang:$lang/apt-transport-https.$lang.1.xml add_$lang:xml.add [type: manpage] apt-transport-mirror.1.xml $lang:$lang/apt-transport-mirror.$lang.1.xml add_$lang:xml.add +[type: manpage] apt-patterns.7.xml $lang:$lang/apt-patterns.7.xml add_$lang:xml.add [type: docbook] guide.dbk $lang:$lang/guide.$lang.dbk # add_$lang::$lang/addendum/docbook_$lang.add -- cgit v1.2.3-70-g09d2