On Wed, 27 Jan 2021 at 15:23, Kenneth Porter shiva@sewingwitch.com wrote:
--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.)
yum group list
then look at the groups installed
yum group info <group>
as in
yum group info base
CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
On Wed, 27 Jan 2021 at 15:27, Stephen John Smoogen smooge@gmail.com wrote:
On Wed, 27 Jan 2021 at 15:23, Kenneth Porter shiva@sewingwitch.com wrote:
--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.)
yum group list
then look at the groups installed
yum group info <group>
as in
yum group info base
or one can look for the comps file in /var/cache/yum
network-tools has dnsmasq listed as a package
repoquery says the following on my rhel box NetworkManager-1:1.4.0-20.el7_3.x86_64 libvirt-daemon-driver-network-0:4.5.0-36.el7_9.3.x86_64
CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
-- Stephen J Smoogen.
--On Wednesday, January 27, 2021 3:31 PM -0500 Stephen John Smoogen smooge@gmail.com wrote:
or one can look for the comps file in /var/cache/yum
network-tools has dnsmasq listed as a package
repoquery says the following on my rhel box NetworkManager-1:1.4.0-20.el7_3.x86_64 libvirt-daemon-driver-network-0:4.5.0-36.el7_9.3.x86_64
Aha! It's actually in network-server ("Network Infrastructure Server") group. network-tools is the next one in the comps.xml file. The group name sounds like something I might have wanted for my application, but the contents are really for a lightweight server like one finds in a consumer router.
But, except for dhcp and radvd, none of the other packages in that group are installed, so I still don't see how I got dnsmasq on my system. Here's the network-server package list:
<packagereq type="optional">dhcp</packagereq> <packagereq type="optional">dnsmasq</packagereq> <packagereq type="optional">freeradius</packagereq> <packagereq type="optional">quagga</packagereq> <packagereq type="optional">radvd</packagereq> <packagereq type="optional">rsyslog-gnutls</packagereq> <packagereq type="optional">rsyslog-gssapi</packagereq> <packagereq type="optional">rsyslog-kafka</packagereq> <packagereq type="optional">rsyslog-mysql</packagereq> <packagereq type="optional">rsyslog-pgsql</packagereq> <packagereq type="optional">rsyslog-relp</packagereq> <packagereq type="optional">syslinux</packagereq> <packagereq type="optional">syslinux-tftpboot</packagereq> <packagereq type="optional">tang</packagereq> <packagereq type="optional">tftp-server</packagereq>