From c3d656bcbc6d7eff04c250eb3be8dbfc0264da5c Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Tue, 4 Feb 2020 17:37:24 +0100 Subject: apt-patterns(7): Document | operator, (), and add an example Missed that in pu/short-patterns. --- doc/apt-patterns.7.xml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/apt-patterns.7.xml b/doc/apt-patterns.7.xml index 6fa945058..297b04cf5 100644 --- a/doc/apt-patterns.7.xml +++ b/doc/apt-patterns.7.xml @@ -52,12 +52,15 @@ ?not(PATTERN)!PATTERN Selects objects where PATTERN does not match. - ?or(PATTERN, PATTERN, ...) + ?or(PATTERN, PATTERN, ...)PATTERN | PATTERN | ... Selects objects where at least one of the specified patterns match. ?true~T Selects all objects. + (PATTERN) + Selects the same as PATTERN, can be used to work around precedence, for example, (~ramd64|~ri386)~nfoo + @@ -159,6 +162,9 @@ apt purge ?config-files Purge all packages that only have configuration files left + apt list '~i !~M (~slibs|~sperl|~spython)' + List all manually-installed packages in sections matching libs, perl, or python. + -- cgit v1.2.3-70-g09d2