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 1c95531d38008a85ccd67a57898ec54ebdc08daa
parent e806c1131f43a272627d427df74f052eb792a464
Author: gearsix <gearsix@tuta.io>
Date:   Tue, 22 Mar 2022 17:42:35 +0000

added xpm update

Diffstat:
Mxpm.sh | 14++++++++++++++
1 file changed, 14 insertions(+), 0 deletions(-)

diff --git a/xpm.sh b/xpm.sh @@ -72,6 +72,16 @@ xpm_query() { else unknown_pm; fi } +xpm_update() { + if [ $(command -v apt) ]; then + sudo apt update && sudo apt upgrade + elif [ $(command -v zypper) ]; then + sudo zypper refresh && sudo zypper update + elif [ $(command -v xbps-install) ]; then + sudo xbps-install -Suv + else unknown_pm; fi +} + # main case "$1" in "i"|"in"|"install") @@ -90,4 +100,8 @@ case "$1" in shift xpm_query $@ ;; + "u"|"up"|"update") + shift + xpm_update + ;; esac