Re: F22: Merge yumdb for yum-dnf migration?
On 2 February 2015 at 09:46, Vít Ondruch vondr...@redhat.com wrote: Neither YUM can always undo the action. But it would be nice to have the change recorded. If you can point me at any docs on how to record changes, I'll add the feature. Richard. -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Re: F22: Merge yumdb for yum-dnf migration?
Dne 30.1.2015 v 17:17 Richard Hughes napsal(a): On 30 January 2015 at 14:36, Vít Ondruch vondr...@redhat.com wrote: Just wondering why I cannot see changes done via gnome-software (packagekit) in yum history :/ We write to the yumdb, I don't know where and how yum stores the history info. It would be a little odd for PK to insert history items (i.e. that yum didn't actually do) as we're actually using a different depsolver, so yum might not be able to undo the action. Neither YUM can always undo the action. But it would be nice to have the change recorded. Vít -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Re: F22: Merge yumdb for yum-dnf migration?
On Fri, 2015-01-30 at 05:03 -0800, Casey Jao wrote: Since dnf knows more than yum due to its tracking of groups ( http://dnf.baseurl.org/2014/04/23/how-groups-are-handled-in-modern-day-dnf/), I'd be inclined to let dnf's version take precedence. I don't know if DNF's is better, but yum tracks groups too - it was about the last major feature added to yum: https://fedoraproject.org/wiki/Features/YumGroupsAsObjects An important note, though, is that no Fedora release so far has written the groups installed during installation out to the installed system. That is, when you install Fedora Workstation 21, neither yum nor dnf will know the 'workstation-product' group is installed (unless dnf infers it somehow, I haven't checked). -- Adam Williamson Fedora QA Community Monkey IRC: adamw | Twitter: AdamW_Fedora | XMPP: adamw AT happyassassin . net http://www.happyassassin.net -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Re: F22: Merge yumdb for yum-dnf migration?
On 30 January 2015 at 14:36, Vít Ondruch vondr...@redhat.com wrote: Just wondering why I cannot see changes done via gnome-software (packagekit) in yum history :/ We write to the yumdb, I don't know where and how yum stores the history info. It would be a little odd for PK to insert history items (i.e. that yum didn't actually do) as we're actually using a different depsolver, so yum might not be able to undo the action. Richard -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Re: F22: Merge yumdb for yum-dnf migration?
On 30 January 2015 at 13:03, Casey Jao casey@gmail.com wrote: Currently dnf and yum have their own yumdb's, under /var/lib/dnf/yumdb and /var/lib/yum/yumdb respectively. Just another datapoint: PackageKit also writes to /var/lib/yum/yumdb Richard. -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Re: F22: Merge yumdb for yum-dnf migration?
Dne 30.1.2015 v 15:24 Richard Hughes napsal(a): On 30 January 2015 at 13:03, Casey Jao casey@gmail.com wrote: Currently dnf and yum have their own yumdb's, under /var/lib/dnf/yumdb and /var/lib/yum/yumdb respectively. Just another datapoint: PackageKit also writes to /var/lib/yum/yumdb Richard. Just wondering why I cannot see changes done via gnome-software (packagekit) in yum history :/ Vít -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
F22: Merge yumdb for yum-dnf migration?
Hello, Currently dnf and yum have their own yumdb's, under /var/lib/dnf/yumdb and /var/lib/yum/yumdb respectively. Among other things, these databases record whether a package was explicitly installed by the user or pulled in automatically as a dependency of another package. This information is used by the dnf autoremove and yum autoremove routines to determine which additional packages can be safely removed. As Packagekit currently writes to yum's yumdb, dnf autoremove will not work correctly when run on packages that were installed using Gnome software, and vice versa. Thus we should consider merging the yumdb's as part of the F22 transition to a unified dnf/hawkey package management backend. From a brief inspection, the two yumdb's on my system appear to have the same structure. All that would need to be done is decide how to proceed in the rare event when the same package appears in both yumdb's. On my machine, make and pkgconfig show up in both yumdb's with the install reason marked as group by dnf and dep by yum. Since dnf knows more than yum due to its tracking of groups ( http://dnf.baseurl.org/2014/04/23/how-groups-are-handled-in-modern-day-dnf/), I'd be inclined to let dnf's version take precedence. Best, Casey -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Re: F22: Merge yumdb for yum-dnf migration?
Am 30.01.2015 um 14:03 schrieb Casey Jao: Currently dnf and yum have their own yumdb's, under /var/lib/dnf/yumdb and /var/lib/yum/yumdb respectively. Among other things, these databases record whether a package was explicitly installed by the user or pulled in automatically as a dependency of another package. This information is used by the dnf autoremove and yum autoremove routines to determine which additional packages can be safely removed. As Packagekit currently writes to yum's yumdb, dnf autoremove will not work correctly when run on packages that were installed using Gnome software, and vice versa. Thus we should consider merging the yumdb's as part of the F22 transition to a unified dnf/hawkey package management backend one of the million reasons why dnf should renamed back to yum after it is final and replaces the old yum signature.asc Description: OpenPGP digital signature -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct