[CentOS] How to query which yum package groups a particular package is member of

Thu Jan 28 14:22:39 UTC 2021
James Szinger <jszinger at gmail.com>

On Wed, 27 Jan 2021 16:21:33 -0800
Kenneth Porter <shiva at sewingwitch.com> wrote:

> I'm guessing that means it was a dependency for something back then.
> Is there a way to discover what? Using "yum history info 1" I see
> that this was the original Anaconda install from 2014. Could dnsmasq
> be in the original minimal disk installer?

Or one can also run `rpm -q --whatrequires dnsmasq`.