I was looking for a way to install all noto fonts on Void. Suppose you want to install all packages matching the pattern “*noto*” then you could run something like.
sudo xbps-install $(xbps-query -R -s noto | awk '/noto/ { print $2 }' | xargs -n1 xbps-uhelper getpkgname)
xargs takes the list of packages in newline format and unrolls it into a long line to be passed as parameter to xbps-install.