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

Wed Jan 27 20:07:35 UTC 2021
J Martin Rushton <martinrushton56 at btinternet.com>

Here's how to find the package for a particular file:

# ls /{bin,sbin}/dns*
/bin/dnsdomainname    /sbin/dnssec-coverage   /sbin/dnssec-keyfromlabel 
/sbin/dnssec-revoke    /sbin/dnssec-verify
/sbin/dnsmasq         /sbin/dnssec-dsfromkey  /sbin/dnssec-keygen 
/sbin/dnssec-checkds  /sbin/dnssec-importkey  /sbin/dnssec-keymgr 
# yum provides /sbin/dnsmasq
Loaded plugins: fastestmirror, langpacks, priorities
Loading mirror speeds from cached hostfile
  * centos-sclo-rh: mirror.freethought-internet.co.uk
  * centos-sclo-sclo: mirror.freethought-internet.co.uk
  * elrepo: mirrors.coreix.net
  * nux-dextop: mirror.li.nux.ro
dnsmasq-2.76-16.el7_9.1.x86_64 : A lightweight DHCP/caching DNS server
Repo        : @updates
Matched from:
Filename    : /sbin/dnsmasq

On 27/01/2021 19:59, Kenneth Porter wrote:
> I'm trying to find out how dnsmasq got on my CentOS 7 system, since I 
> use BIND for DNS. I'm guessing it was part of a base group that Anaconda 
> installs for all systems.
> Red Hat has this answered on this page but the answer is only available 
> to subscribers. I'm guessing this kind of content will be available to 
> us once the new free subscription thing starts.
> <https://access.redhat.com/solutions/2534881>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> https://lists.centos.org/mailman/listinfo/centos

J Martin Rushton MBCS