aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-09-21 18:24:42 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-09-21 18:24:42 -0300
commit1e8dd05a04e3d4faf48bc4507c17bcbd85f352f8 (patch)
treed2ad868a1da8751af7a3dec6fab3c3d9df80fdd6
parentf869a4f6d28bc467cfb3b6c8ff664e4414b38e7c (diff)
downloadstowpkg-1e8dd05a04e3d4faf48bc4507c17bcbd85f352f8.tar.gz
stowpkg-1e8dd05a04e3d4faf48bc4507c17bcbd85f352f8.tar.bz2
Adds binaries/sources options
-rw-r--r--README.md15
-rwxr-xr-xstowpkg8
2 files changed, 17 insertions, 6 deletions
diff --git a/README.md b/README.md
index 1230bea..aeadff9 100644
--- a/README.md
+++ b/README.md
@@ -34,6 +34,9 @@ Usage
stowpkg search # list packages available on ports
stowpkg install <package> # install packages from source
stowpkg build # simple package builder (./configure && make && make install)
+ stowpkg list # list packages installed
+ stowpkg sources # list program sources available
+ stowpkg binaries # list program binaries available
Running installed applications
------------------------------
@@ -79,12 +82,12 @@ Further development
Other commands can easily be implemented:
- stowpkg list # list packages installed
- stowpkg remove <package> # remove packages
- stowpkg purge <package> # purge packages
- stowpkg update # update ports repository
- stowpkg upgrade [package] # upgrade packages
- stowpkg upstream <package> # check packages versions at upstream
+ stowpkg remove <package> # remove packages
+ stowpkg purge <package> # purge packages
+ stowpkg update # update ports repository
+ stowpkg upgrade [package] # upgrade packages
+ stowpkg upstream <package> # check packages versions at upstream
+ stowpkg switch <package> <version> # switch a package to another available version
Also, per-architecture binary package support might be implemented using
git-annex and GnuPG signatures, giving us commands like
diff --git a/stowpkg b/stowpkg
index 1b0538e..f182bd0 100755
--- a/stowpkg
+++ b/stowpkg
@@ -231,6 +231,14 @@ stowpkg_list () {
done | sort | uniq
}
+stowpkg_binaries () {
+ ls $BINARIES
+}
+
+stowpkg_sources () {
+ ls $SOURCES
+}
+
# Dispatch
if grep -q "^stowpkg_$ACTION () {$" $0; then
__stowpkg_initialize