You are viewing illiterat

James Antill - Understanding groups in yum

Aug. 7th, 2008

11:40 pm - Understanding groups in yum

Previous Entry Share Next Entry

Comments:

From:bogado
Date:August 8th, 2008 02:16 am (UTC)

More metadata could help

(Link)
The point is doing what the user expect, so if YUM could inform the rpm database (or maybe have it's own DB) that a particular package was installed as a result of installing a group the removal of this group would remove only the packages that were installed in the original operation.
(Reply) (Thread)
[User Picture]
From:illiterat
Date:August 8th, 2008 05:01 pm (UTC)

Re: More metadata could help

(Link)

True, we are planning on exploring changing the model when we can store extra data in the rpmdb. I'm not 100% sure it will be a good idea, due to the corner cases (and what happens if/when group membership changes) ... but we'll certainly try it and see what it looks like.

We have also written code to store data directly in yum, but Fedora is against it as that would then force any other package managers to either repeat the data or talk to yum. The idea being if everyone could just talk to rpm that would be much better (and there would be only one real DB anyone needs to care about).

But if that change happens I still think it'll be better to present the user with "this group contains these pkgs, install some/all of them?" rather than just the "install group [X]" type option ... and also to remove core pkgs from weird groups.

The complete list of rpmdb pieces we want are roughly: 1) what repo. was X installed from 2) was it installed directly, via. a group or via. a dep. 3) what yum groups was it in. Other devel priorities are:

http://wiki.linux.duke.edu/YumDevPriorities
(Reply) (Parent) (Thread)
From:bogado
Date:August 8th, 2008 05:56 pm (UTC)

Re: More metadata could help

(Link)
I agree, maybe groups should not have a installed state at all, they function only as a filter, this would naturally cut all the corner cases. If a user want he can install all the packages, but the operation of removing a group is, or at least should, not be well defined.
(Reply) (Parent) (Thread)