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.
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-settime /sbin/dnssec-checkds /sbin/dnssec-importkey /sbin/dnssec-keymgr /sbin/dnssec-signzone # 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@centos.org https://lists.centos.org/mailman/listinfo/centos
--On Wednesday, January 27, 2021 8:07 PM +0000 J Martin Rushton via CentOS centos@centos.org wrote:
Here's how to find the package for a particular file:
That one's easy and I use this all the time:
rpm -qf full-file-name
I'm looking for how to get the yum group for a package. (I'm guessing a package might even be in more than one group?) That would help explain how the dnsmasq package got installed on my system. (It was never enabled by systemd and isn't required by any other package. So I went ahead and erased it to free the space and reduce my attack surface.)