XBPS-INSTALL: glob install

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.

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s