From e699f7c298c6faeb83504f2090b45955b5cc67cc Mon Sep 17 00:00:00 2001 From: terminalforlife Date: Wed, 13 Nov 2019 16:19:42 +0000 Subject: [PATCH] Add two examples for `apt-cache` --- sheets/apt-cache | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sheets/apt-cache b/sheets/apt-cache index e69de29..6fa0f4c 100644 --- a/sheets/apt-cache +++ b/sheets/apt-cache @@ -0,0 +1,9 @@ +# Search for package PKG. Both package names and their descriptions are searched +# for a REGEX match; to avoid this behavior, you may use the `-n` flag, which will +# only look for a match in the package name. +apt-cache search 'PKG' + +# Regarding the above, although multiple package names may not be specified, it's +# possible to use ERE to easily and quickly get around this limitation. Here, all +# 3 packages (PKG1, PKG2, and PKG3) will be sought. +apt-cache search '(PKG1|PKG2|PKG3)'