Equery magic

less than 1 minute read

While looking to modular-x-ify the new Metacity ebuild, I needed a way to verify the X deps and used this:

for x in $(ldd /usr/bin/metacity|cut -f2 -d =|cut -f2 -d ' '|grep ^/); do equery -q belongs $x; done

Enjoy!

Categories:

Updated:

Leave a Comment