]> pd.if.org Git - zpackage/blobdiff - zpm-gc
update for repository installing support
[zpackage] / zpm-gc
diff --git a/zpm-gc b/zpm-gc
index 3c1716c4fcfb264682c0bac2888a3ad53716e77d..95dcbe4cd4e2176c992a7cd6682eeba001554680 100755 (executable)
--- a/zpm-gc
+++ b/zpm-gc
@@ -3,6 +3,26 @@
 # garbage collect a package database
 # flags to skip phases
 
+# -C clear all phases
+# -n dry run
+# -a all phases
+# default is failed packages, orphaned elf, vacuum
+# 
+# phases
+# -cC remove command history by date
+# -dD remove dry run
+# -eE remove orphaned elf
+# -fF remove failed
+# -hH fix file content hash
+# -hH remove install history by date
+# -lL remove old logs, given by date
+# -nN remove acked notes
+# -oO remove outdated packages, unless preserved
+# -pP remove history for removed packages
+# -rR remove orphaned rows in files table packagefiles, notes, scripts, ...
+# -rR remove removed packages, unless preserved
+# -vV compactify the database file
+
 db=${1:-${ZPMDB:-/var/lib/zpm/local.db}}
 
 if [ -z "$db" ]; then