[Yum-devel] group DB
Tim Lauridsen
tim.lauridsen at googlemail.com
Wed May 27 04:22:28 UTC 2009
On 05/26/2009 09:21 PM, Jeremy Katz wrote:
> On Tuesday, May 26 2009, Seth Vidal said:
>
>> On Fri, 22 May 2009, James Antill wrote:
>>
>>> Some thoughts about group DB (having groups as real objects). I mainly
>>> wrote this for me, to see if "group DB" was actually possible. I think
>>> so :).
>>>
> [snip]
>
>>> ...a couple of things that fall out of this:
>>>
>>> i. You can have all the packages for a group installed, but the group
>>> not installed.
>>>
> This has in the past been a contention from a UI perspective
>
>
>>> ii. You can have a group installed, but no packages from that group
>>> installed.
>>>
> And this definitely feels weird. What does having the group "installed"
> mean then?
>
> Doing this via some yum-only-database still feels like we're going to
> get into trouble for all the reasons we had talked about back in January
>
>
>> and all of the above means we're doing it via a yum "groupdb" of some
>> kind. I'm not necessarily opposed to it but if:
>>
>> 1. we could construct rpm hdr objects in memory from python
>> 2. we could insert these objects into the rpmdb in a transaction
>>
>> would that be enough to step around the weird extra db?
>>
>> specifically it would allow us to make meta-pkg "Group" packages on the
>> fly and have the rpmdb keep things consistent - including something like
>> a "version".
>>
> There's still some amount of fiddles and bits perhaps required due to
> repo enabling/disabling. But it feels a little bit better if we can get
> the information into the rpmdb rather than more and more dbs in more and
> more places...
>
> Jeremy
> _______________________________________________
> Yum-devel mailing list
> Yum-devel at lists.baseurl.org
> http://lists.baseurl.org/mailman/listinfo/yum-devel
>
The importent part is to define the user cases and how we what the
different cases and look if it can be done
without adding extra databases.
Ex.
yum install blah-package-in-KDE-group
yum groupinstall KDE
yum groupremove KDE
...you have blah left at the end. The other desire is that given:
If we add a 'KDE' tag to the yum pkg info db to the packages installed by
'yum groupinstall KDE'
then 'yum groupremove KDE' could:
1. get the list of packages from comps in the KDE group.
2. remove the ones the has a 'KDE' tag.
and we could even add 'yum groupremoveall KDE' or 'yum groupremove KDE --remove-all' there we do what we do today
1. get the list of packages from comps in the KDE group.
2. remove all the installed packages from the list
None of this needs a special group db, but i could be an idea to put comps into an sqlite db for faster access, it don't change very often
so no need to waste time to build the structures every time.
Tim
More information about the Yum-devel
mailing list