m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/pacman.md
diff options
context:
space:
mode:
authorMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2021-01-15 23:04:33 +0100
committerMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2021-01-15 23:04:33 +0100
commit758da8fd3a73a70ef093e526207e904ecae60aa3 (patch)
tree27617b9c84b4fdb7982f18ae78645819ce70e97c /pacman.md
parent33921b69b45d4f41d18571416be2c255ce4ebddf (diff)
Update cheatsheets
Diffstat (limited to 'pacman.md')
-rw-r--r--pacman.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/pacman.md b/pacman.md
index 93c13b2..5c0350f 100644
--- a/pacman.md
+++ b/pacman.md
@@ -3,3 +3,13 @@
## Downgrade cached package
pacman -U /var/cache/pacman/pkg/package-version...
+
+## Cleaning cache
+
+ paccache -r
+
+* `-k`: how many past versions of each package to keep, defaults to 3.
+* `-u`: target only uninstalled packages.
+
+ # remove all versions of uninstalled packages
+ paccache -ruk0