From 4df07927ce9cf9257c974c571a7e04d4fa7c2cbe Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Sun, 5 Mar 2017 07:35:16 -0600 Subject: [PATCH] add examples to readme --- README | 109 ++++++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 92 insertions(+), 17 deletions(-) diff --git a/README b/README index e58cc90..4ae1e24 100644 --- a/README +++ b/README @@ -1,3 +1,6 @@ +ZPM - the ultimate package manager +================================== + Features -------- @@ -17,7 +20,7 @@ package contents integrity lists of directory contents package database editing - e.g. marking a file as a configuration file + mark a file as a configuration file repackaging creating a package from the current state of an installed package @@ -50,23 +53,95 @@ simple packaging constructs use shell scripts where possible use shell functions as hooks and callbacks -package is just a tarball -can contain more than one package -xz compressed - -version? -package-name/version/files/{usr/bin/foo, etc} -package-name/version/info/hooks - shell script of functions -package-name/version/info/pkginfo - shell readable -package-name/version/info/manifest? derivable from tarball -package-name/version/info/dynamiclibs, or greppable from manifest? +A package is an SQLite database file. -/var/lib/zpac: -packages/installed//files/sha1/ab/ab/hash -> file -librefs// (or file?) -sha1/ab/ab/ -> file -fileowner/sha1/ab/ab/hash/packagename - can be more than one +Multiple packages in the same file. need to mark a package as held for no automatic upgrade -configure to run a command after an any package work +configure to run a command after any package work + +System Administration +--------------------- + +Install a package + + zpm install + +Add a repository + + zpm repo add + +List the files owned by a package + + zpm contents + +Capture current state of configuration files + + zpm capture + +Create a package file from an installed package + + zpm export + +Extract file content from a package + + zpm extract + +Packaging Software +------------------ + +Build a package in the current directory + + zpm build + +Create a package from a tarball + + zpm build -t + +Import the contents of one package file into another + + zpm merge + +Create a package from a list of file names on stdin + + find | zpm build -s + +Create a new empty package + + zpm newpackage + +Add a file to a package in a package db + + zpm addtopackage + +Mark a file as a configuration file + + zpm mark -c + +Mark a package as finished building + + zpm complete + +Utilities +--------- + +Show the elf libraries needed by a program or library + + zpm soneed + +Show the elf library provided by a library file + + zpm soname + +Get the sha256 hash of a file + + zpm hash + +Get the unix timestamp of a file + + zpm stat -f '%m' + +Get the uid of a file + + zpm stat -f '%u' -- 2.40.0