I was wanting to list for uninstall/re-emerge of installed netbeans packages. I have 2 slots 8.2 and 9. I wanted to limit to just 9. I assumed it could via slot. There maybe means via another way. But the following did not work. qlist -IC 'dev-java/netbeans-*' -S 9 Seems like it became OR vs AND. It lists a bunch of incorrect stuff. Things in various slots, or any. Various package names, that do not match up. Its not a work update list of packages. I cannot guestimate how it came up with the list it produces from that. I think it should be the same for any. Pick a package that has a few related packages that would match the pattern portion. Run that, see that list. Then add the slot/-S, and see the list grow to much more stuff :)
Here's a workaround: qlist -ICS $(portageq match / 'dev-java/netbeans-*:9')
Ah thanks!!! I was trying to mess with format but could not get it down. Thought I tried that format, but guess not. Much appreciated!
slot match as part of the atom appears to work well: % qlist -ICv dev-lang/python:2.7 dev-lang/python-2.7.14 % qlist -ICv dev-lang/python:3.5 dev-lang/python-3.5.4 I think you misinterpreted the -S flag, it doesn't take an argument (= slot like in your example) it just prints the slot of the package. So it takes 9 in your example as argument to match against, which turns out to be anything with a 9 in its name, version or revision. E.g. compare against the previous output: % qlist -SICv dev-lang/python:3.5 dev-lang/python-3.5.4:3.5/3.5m