xpm

x package manager, a uniform interface to various POSIX package managers
git clone git://src.gearsix.net/xpm
Log | Files | Refs | Atom | README

commit c85b19454ef9d1b5094ea9afff170744e7241804
parent 81cd88bdadfa7a2485800288c6a9a4f606194d6e
Author: Alex Collins <acollins@onetrust.com>
Date:   Wed, 27 Apr 2022 13:09:56 +0100

added brew support; added TODO.txt;

Diffstat:
ATODO.txt | 1+
Mxpm.sh | 6++++++
2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/TODO.txt b/TODO.txt @@ -0,0 +1 @@ +- add some way of handling systems that have multiple package managers installed diff --git a/xpm.sh b/xpm.sh @@ -94,6 +94,8 @@ xpm_search() { zypper search $@ elif [ $(command -v xbps-query) ]; then xbps-query -Rs $@ + elif [ $(command -v brew) ]; then + brew install $@ else unknown_pm; fi } @@ -104,6 +106,8 @@ xpm_query() { zypper search --installed-only $@ elif [ $(command -v xbps-query) ]; then xbps-query -S $@ + elif [ $(command -v brew) ]; then + brew search $@ else unknown_pm; fi } @@ -114,6 +118,8 @@ xpm_update() { sudo zypper refresh && sudo zypper update elif [ $(command -v xbps-install) ]; then sudo xbps-install -Suv + elif [ $(command -v brew) ]; then + brew update else unknown_pm; fi }