Is it possible to install items in a package category like
games-rpg/ using a single portage command?
I've tried using things like
games-rpg/* but I have not managed to get anything working so far.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
# emerge -optionswithnospaces category/package-name-version-x.y.z
You confused, package with category, which I edited. This leads to the answer for your question.
Emerge itself cannot emerge packages by wildcarding the category, as the dependency checker expects at least one package.
This leaves us with two options:
app-portage/portage-utils. Something close to
emerge -av $(for name in $(qlist -IC | grep -v '^games-rpg/') etc etcPersonally, I hate that method, as it takes time for me to debug. There are some great scriptors on this Exchange if you decide to go this route.
nano -w /etc/portage/sets/rpg-games
Add the following:
emerge -av @rpg-games
Portage can actually expand the Wildcard if the wildcard is listed in the set. I believe this works through buffer magic, but don't quote me on it. The emerge shell forks open a temporary file, lists all the items selected by the wildcard, gathers the list and sends it as input, then closes the temporary file.
For more on Wildcards and Portage, read the GLOSSARY Section in
man portage. Here's the online copy.