Ask Your Question

yum update tries to install a TON of software???

asked 2013-11-30 20:43:54 -0500

sfairchild gravatar image

updated 2013-12-01 08:24:51 -0500

I'm running fedora 20 beta, and everytime I try to update with yum (yum upgrade), it trys to install 1.6 Gs of software! 90% of it is stuff I don't have on my system, like wireshark for example.

I do have a few third party repos, here they are if that might affect things.

repo id                            repo name                                 status
fedora/20/x86_64                   Fedora 20 - x86_64                        38,585
google-chrome                      google-chrome                                  3
rpmfusion-free-rawhide/x86_64      RPM Fusion for Fedora Rawhide - Free         412
rpmfusion-nonfree-rawhide/x86_64   RPM Fusion for Fedora Rawhide - Nonfree      183
updates/20/x86_64                  Fedora 20 - x86_64 - Updates                   0
updates-testing/20/x86_64          Fedora 20 - x86_64 - Test Updates          3,426
repolist:                                                                    42,609
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2013-12-01 08:22:58 -0500

updated 2013-12-01 08:29:19 -0500

This is actually a « feature » in Yum. (note the quotes)

The way it works is as follows.

Say you have a package installed from the group « Games and Entertainment » (as shown by yum grouplist). Then running yum update will install all the packages from that group. Because surely, if you have some package installed from a group, then you really want to complete that group. Right? :-/

AFAIK, the thinking behind it is that between two versions of Fedora, a group might grow to include some new packages, which the user wouldn't get through an upgrade.

Let's take an example.

Imagine you're a GNOME user. So you installed from the Fedora 19 Desktop live image, and as a result, you have the « GNOME group » installed on your machine.

Then you upgrade to Fedora 20, but in that new release the GNOME team decided to add this new GNOME app to the GNOME group.

If you install Fedora 20, then you'll get it, but if you upgrade to it, then you won't.

This Yum feature comes in, and helps solve this discrepancy, so that you get the new app also on upgrade.

However, this feature totally fails to take into account that some people might actually have installed some packages from a group, without wanting all of them.

And that is what is happening to you.

Fortunately, there is a way to fix this... I mean, to get back to the older behaviour. ;-)

the yum.conf manual has this to say:

group_command List of the following: simple, compat, objects. Tells yum what to do for group install/upgrade/remove commands.

Simple  acts  like  you  did  yum group cmd $(repoquery --group --list group), so it is vrery easy to reason about what will happen. Alas. this is often not what people want to happen.

Compat. works much like simple, except that when you run "group upgrade" it actually runs "group install" (this means that  you  get any new packages added to the group, but you also get packages added that were there before and you didn't want).

Objects  makes  groups  act  like  a  real  object,  separate from the packages they contain. Yum keeps track of the groups you have installed, so "group upgrade" will install new packages for the group but not install old ones. It also knows  about  group  members that are installed but weren't installed as part of the group, and won't remove those on "group remove".  Running "yum upgrade" will also run "yum group upgrade" (thus. adding new packages for all groups).

Default is: compat

I'm pretty sure the manual is wrong, and the default is in fact « objects », because that's the behaviour I'm observing while testing.

But suffice it to say that setting this option to either simple or compat in /etc/yum.conf gets the behaviour you want. I'm not sure which one is better though. :-/

Another solution is to stop using yum update, and instead ... (more)

edit flag offensive delete link more

Question Tools


Asked: 2013-11-30 20:43:54 -0500

Seen: 353 times

Last updated: Dec 01 '13