How about using yum history to find when and why the package was installed?
yum history summary dnsmasq yum history package-list dnsmasq
Jamie
On Wed, 27 Jan 2021 at 20:56, Kenneth Porter shiva@sewingwitch.com wrote:
--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>
CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
--On Wednesday, January 27, 2021 11:35 PM +0000 Jamie Burchell mail@jamieburchell.com wrote:
How about using yum history to find when and why the package was installed?
yum history summary dnsmasq yum history package-list dnsmasq
Very nice!
The oldest record of the second command:
1 | Dep-Install | dnsmasq-2.66-12.el7.x86_64
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?
On Wed, 27 Jan 2021 16:21:33 -0800 Kenneth Porter shiva@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?
Try `yum remove --assumeno dnsmasq` and see what it wants to remove. On my system I get
--> Processing Dependency: dnsmasq >= 2.41 for package: libvirt-daemon-driver-network-4.5.0-36.el7_9.3.x86_64
Jim
On Wed, 27 Jan 2021 16:21:33 -0800 Kenneth Porter shiva@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`.
Jim
--On Thursday, January 28, 2021 7:22 AM -0700 James Szinger jszinger@gmail.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`.
That I tried at the beginning but it turned up nothing, which is why I was mystified. I suspect whatever depended on it before has lost the dependency in a later version, or I removed it long ago.