I think jggimi's method is more complete than the one I'm about to propose.
I think jggimi's is more complete because it will mention packages that are for Gnome that don't necessarily have the word "gnome" in them. But it's nice to see different ways to do things, imho.