xbps is the Void Linux
binary package manager. It's good because it's simple but it is
lacking some features I would wish it had, so I made this script.
$ xbps-q --help
xbps-q: better wrapper for xbps-query
Usage: xbps-q [flags...] <matches...>
xbps-q [flags...] -T <package>
Options:
-h (--help) Display a help message
-P (--flag) <FLAG> Pass a flag FLAG to xbps-query
-R (--regex, --regexp) Search by regexp
-i Ignore case when searching
-N (--only-names, Display only names of packages
--short)
-T (--this) Display info for a single specific package
(conflicts with some options)
--installed Display only installed packages
(conflicts with --not-installed)
--not-installed Display only not installed packages
(conflicts with --installed)Find packages including git in the name or description:
$ xbps-q gitFind packages that are installed that include bash in the name or description:
$ xbps-q bash --installedPrint minimal information about the package git:
$ xbps-q -T git --shortThis is just a bash script, you don't need to build it.
Just put the script somewhere in one of the PATH directories.