Added: List installed packages without their version

thanks to void docs
https://docs.voidlinux.org/xbps/index.html?highlight=package#xbps-package-manager
This commit is contained in:
zenobit 2022-01-03 15:05:54 +00:00
parent c52627a994
commit af9bccf2b3
1 changed files with 7 additions and 1 deletions

8
vbm
View File

@ -210,7 +210,7 @@ usage () {
t "xbps-query -v -L"
echo "addrepo (ad) <ARGS> - Add an additional repository"
t "xbps-install <ARGS>"
echo "about (a) <pkg> - Show information about <package>"
echo "about (a) <pkg> - Show information about <package>"
t "xbps-query -v -R"
echo "filelist (fl) <pkg> - Show file-list of <package>"
t "xbps-query -v -R -f"
@ -224,6 +224,8 @@ usage () {
t "xbps-query -v -o \"*/$1\""
echo "list (ls) - List installed packages"
t "xbps-query -v -l"
echo "listw (lw) - List installed packages without their version"
t "xbps-query -l | awk '{ print $2 }' | xargs -n1 xbps-uhelper getpkgname"
echo "install (i) <pkg(s)> - Install <package(s)>"
t "xbps-install"
echo "devinstall (di) <pkg(s)> - Install <package> (and corresponding <package>-devel package(s))"
@ -358,6 +360,10 @@ case "$cmd" in
done < <(xbps-query -v -l)
;;
listw|lw)
wrapcommand xbps-query -l | awk '{ print $2 }' | xargs -n1 xbps-uhelper getpkgname
;;
listalternative|listalternatives|la)
wrapcommand xbps-alternatives -l "$@"
;;