search and searchmultilib

This commit is contained in:
zenobit 2022-01-13 06:27:04 +01:00
parent 58aab2ab6c
commit 4497b3fc59
2 changed files with 3 additions and 9 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.history

11
vbm
View File

@ -209,12 +209,10 @@ usage () {
t "xbps-query -v -R -x" t "xbps-query -v -R -x"
echo "reverse (rd) <pkg> - Show reverse dependendies of <package> (see man xbps-query)" echo "reverse (rd) <pkg> - Show reverse dependendies of <package> (see man xbps-query)"
t "xbps-query -v -R -X" t "xbps-query -v -R -X"
echo "searchall (sa) <name> - Search for package by in all repositories (multilib included) <name>" echo "searchmultilib (sm) <name> - Search for package by in all repositories (multilib included) <name>"
t "xbps-query -v -Rs" t "xbps-query -v -Rs"
echo "search (s) <name> - Search for package by <name> (exclude multilib repo)" echo "search (s) <name> - Search for package by <name> (exclude multilib repo)"
t "xbps-query -v -Rs" t "xbps-query -v -Rs"
echo "searchexclude (se) <name> - Search for package by <name> (exclude multilib repo)"
t "xbps-query -v -Rs"
echo "searchfile (sf) <file> - Search for package containing <file> (local)" echo "searchfile (sf) <file> - Search for package containing <file> (local)"
t "xbps-query -v -o \"*/$1\"" t "xbps-query -v -o \"*/$1\""
echo "whatprovides (wp) <file> - Search for package containing <file>" echo "whatprovides (wp) <file> - Search for package containing <file>"
@ -539,7 +537,7 @@ case "$cmd" in
xcheckrestart xcheckrestart
;; ;;
searchall|sa) searchmultilib|sm)
msg -n "Searching for: $* " msg -n "Searching for: $* "
wrapcommand xbps-query -v -Rs "$*" wrapcommand xbps-query -v -Rs "$*"
;; ;;
@ -549,11 +547,6 @@ case "$cmd" in
wrapcommand xbps-query -v -Rs "$*" | grep -v 32bit wrapcommand xbps-query -v -Rs "$*" | grep -v 32bit
;; ;;
searchexclude|se)
msg -n "Searching for: $* "
wrapcommand xbps-query -v -Rs "$@" | grep -v 32bit
;;
cleanup|clean|cl) cleanup|clean|cl)
msg -n 'Remove obsolete packages in cachedir ' msg -n 'Remove obsolete packages in cachedir '
rootcheck rootcheck