m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Chrzanowski <m@m-chrzan.xyz>2023-08-17 10:29:48 +0200
committerMarcin Chrzanowski <m@m-chrzan.xyz>2023-08-17 10:29:48 +0200
commit2647e1c1ddcd10faab4f71a81d0f78cb96600516 (patch)
treef9525431cc58323111f1c4050f5a36f8e907c1d5
parent2eb9a6f33820ca02cef1b8993c64f744cfe7d3b3 (diff)
Add pacman file searching
-rw-r--r--pacman.md18
1 files changed, 17 insertions, 1 deletions
diff --git a/pacman.md b/pacman.md
index e6d8cd0..133adfd 100644
--- a/pacman.md
+++ b/pacman.md
@@ -41,6 +41,22 @@ there and remove the .pacnew suffix)
By itself, outputs all installed packages.
-## Browsing installed packages with `fzf`
+### Browsing installed packages with `fzf`
pacman -Qq | fzf --preview 'pacman -Qil {}' --layout=reverse --bind 'enter:execute(pacman -Qil {} | less)'
+
+## Files (-F)
+
+Query the files database.
+
+Download/update database:
+
+ pacman -Fy
+
+Lists packages that contain `file`:
+
+ pacman -F <file>
+
+List files contained in `package`:
+
+ pacman -Fl <package>