Bug 1167239

Summary: [rfe] use Swdb instead of history db and yumdb
Product: [Fedora] Fedora Reporter: Honza Silhan <jsilhan>
Component: dnfAssignee: Eduard Čuba <ecuba>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: medium    
Version: rawhideCC: akozumpl, aliakc, alikins, amessina, dmach, ecuba, ed.greshko, fedora, hvtaifwkbgefbaei, jzeleny, kalevlember, lantw44, laurent.rineau__fedora, Maillist_Cyber1000, maxime.carron, mls, ngompa13, robin.a.meade, robinlee.sysu, tim.lauridsen, todoleza, vondruch
Target Milestone: ---Keywords: FutureFeature, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-05-29 14:30:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1079526, 1089810, 1090292, 1192684, 1194222, 1198998, 1227678    

Description Honza Silhan 2014-11-24 09:35:43 UTC
Connect Swdb with DNF and document exposed API.

* Swdb is redesigned and merged history db and yumdb. It's a standalone library with C/C++/Python API that will be used by Dnf/PackageKit/yum to maintain log of transaction and additional package info (from which repo was package installed, reason, group info, etc.).

Comment 1 Michael Schröder 2015-03-09 15:58:54 UTC
I don't think this is a good idea to add such functionality at this level. You should add an API for storing such information to rpm. rpm itself can then use swdb for storage.

Comment 2 Honza Silhan 2015-03-17 09:16:39 UTC
This goal was suspended for a while. We can reconsider the layers.

Comment 3 Honza Silhan 2015-07-24 11:25:17 UTC
*** Bug 1227949 has been marked as a duplicate of this bug. ***

Comment 4 Ali Akcaagac 2015-08-24 09:47:43 UTC
Pardon my lack of knowledge here. But what is swdb and where to find more information about it ? How's this related to yumdb stored informations ?

Comment 5 Honza Silhan 2015-11-02 15:39:13 UTC
*** Bug 1276850 has been marked as a duplicate of this bug. ***

Comment 6 Honza Silhan 2015-11-02 15:50:13 UTC
*** Bug 1276921 has been marked as a duplicate of this bug. ***

Comment 7 Neal Gompa 2016-01-16 16:58:20 UTC
Could we please see this implemented? The inconsistency between PackageKit based frontends and DNF is maddening!

Comment 8 Honza Silhan 2016-01-18 12:23:12 UTC
This will not be implemented anytime soon. We should reuse functions of libhif  in DNF at first then by the needs implement the swdb. When PK write to dnfdb then it will be fine (bug 1259865).

Comment 9 Fedora Admin XMLRPC Client 2016-07-08 09:26:20 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 10 Neal Gompa 2016-07-14 12:09:28 UTC
Now that DNF is going to be using libhif with DNF 2.0, what's the status on unifying the transactional information recording between PK and DNF?

Comment 12 Honza Silhan 2017-03-13 15:39:14 UTC
*** Bug 1430269 has been marked as a duplicate of this bug. ***

Comment 13 Daniel Mach 2018-05-29 14:30:29 UTC
Fixed as part of dnf-3.0 and libdnf-0.14 in upstream.
They will be released soon.