Why does yumdb include packages I haven’t explicitly installed?

Yesterday I posted how to list packages you’ve explicitly installed using yum, but some people have written in to say the command shows packages that they never explicitly installed. Some examples are, things like ModemManager and firmware packages.

I think the reason for this is that yumdb is including default and mandatory packages from when you install a group. I guess that makes sense, if you install a group then you’re telling it you want all of the packages there (but you shouldn’t get any deps).

For example, most systems probably have @hardware-support group installed, which is where ipw220-firmware comes from:
$ sudo yum groupinfo hardware-support |grep ipw2200

Similarly, for ModemManager, it’ll be part of default @dial-up group.
$ sudo yum groupinfo dial-up |grep Modem

So the only way around this I can see is to not install groups, because installing a group tells it to install whatever is in the list.

It would be great however, if yumdb supported a “group” type..


2 thoughts on “Why does yumdb include packages I haven’t explicitly installed?

Leave a Reply

Your email address will not be published. Required fields are marked *