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

2021-01-28 Thread Kenneth Porter
--On Thursday, January 28, 2021 7:22 AM -0700 James Szinger 
 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.




___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


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

2021-01-28 Thread James Szinger
On Wed, 27 Jan 2021 16:21:33 -0800
Kenneth Porter  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
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


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

2021-01-28 Thread James Szinger
On Wed, 27 Jan 2021 16:21:33 -0800
Kenneth Porter  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
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


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

2021-01-27 Thread Kenneth Porter
--On Wednesday, January 27, 2021 11:35 PM + Jamie Burchell 
 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?


___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


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

2021-01-27 Thread Jamie Burchell
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  wrote:

> --On Wednesday, January 27, 2021 3:31 PM -0500 Stephen John Smoogen
>  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:
>
>   dhcp
>   dnsmasq
>   freeradius
>   quagga
>   radvd
>   rsyslog-gnutls
>   rsyslog-gssapi
>   rsyslog-kafka
>   rsyslog-mysql
>   rsyslog-pgsql
>   rsyslog-relp
>   syslinux
>   syslinux-tftpboot
>   tang
>   tftp-server
>
>
> ___
> CentOS mailing list
> CentOS@centos.org
> https://lists.centos.org/mailman/listinfo/centos
>
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


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

2021-01-27 Thread Kenneth Porter
--On Wednesday, January 27, 2021 3:31 PM -0500 Stephen John Smoogen 
 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:


 dhcp
 dnsmasq
 freeradius
 quagga
 radvd
 rsyslog-gnutls
 rsyslog-gssapi
 rsyslog-kafka
 rsyslog-mysql
 rsyslog-pgsql
 rsyslog-relp
 syslinux
 syslinux-tftpboot
 tang
 tftp-server


___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


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

2021-01-27 Thread Stephen John Smoogen
On Wed, 27 Jan 2021 at 15:27, Stephen John Smoogen  wrote:

>
>
> On Wed, 27 Jan 2021 at 15:23, Kenneth Porter 
> wrote:
>
>> --On Wednesday, January 27, 2021 8:07 PM + J Martin Rushton via
>> CentOS
>>  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 
>
> 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.
>
>

-- 
Stephen J Smoogen.
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


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

2021-01-27 Thread Stephen John Smoogen
On Wed, 27 Jan 2021 at 15:23, Kenneth Porter  wrote:

> --On Wednesday, January 27, 2021 8:07 PM + J Martin Rushton via CentOS
>  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 

as in

yum group info base


> ___
> CentOS mailing list
> CentOS@centos.org
> https://lists.centos.org/mailman/listinfo/centos
>


-- 
Stephen J Smoogen.
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


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

2021-01-27 Thread Kenneth Porter
--On Wednesday, January 27, 2021 8:07 PM + J Martin Rushton via CentOS 
 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.)




___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


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

2021-01-27 Thread Stephen John Smoogen
On Wed, 27 Jan 2021 at 15:01, 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.
>
>
probably from virtualization if it is there.. but a way to check is

repoquery --whatrequires dnsmasq



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.
>
> 
>
> ___
> CentOS mailing list
> CentOS@centos.org
> https://lists.centos.org/mailman/listinfo/centos
>


-- 
Stephen J Smoogen.
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


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

2021-01-27 Thread J Martin Rushton via CentOS

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.




___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


--
J Martin Rushton MBCS
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


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

2021-01-27 Thread Kenneth Porter
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.




___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos