Bug 1847619

Summary: move default rpmdb location to align w/opensuse and rpm-ostree
Product: [Fedora] Fedora Reporter: Colin Walters <walters>
Component: rpmAssignee: Neal Gompa <ngompa13>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 36CC: cglombek, dustymabe, igor.raits, mjw, ngompa13, packaging-team-maint, pmatilai, pmoravco, vmukhame, vrutkovs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-02-14 10:11:23 UTC Type: Task
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Colin Walters 2020-06-16 17:14:43 UTC
Fedora rawhide is switching to sqlite database; this is a prime time to finally also move the rpm database to align with what OpenSUSE and rpm-ostree (at least) want.

See: 

- https://bugzilla.redhat.com/show_bug.cgi?id=1838691
- http://lists.rpm.org/pipermail/rpm-maint/2017-October/006681.html
- https://github.com/coreos/rpm-ostree/pull/1142

I think the general conclusion there is `/usr/lib/sysimage/rpm`.  We'd leave a symlink in `/var/lib/rpm` pointing there.

Comment 1 Panu Matilainen 2020-06-17 05:45:30 UTC
As already stated in bug 1838691: absolutely not, not at the same time as the sqlite change.

Beyond that, the question is why should we bother? For rpm itself there's practically zero benefit but a whole world of pain involved. Align with something else is not much of a reason for going through a painful change, the snapshot case is a better one. What's the state of system snapshot support in Fedora? I don't know.

Comment 2 Igor Raits 2020-06-17 05:49:53 UTC
> What's the state of system snapshot support in Fedora?

There are discussions happening now in Workstation WG to use btrfs-by-default and that would allow us doing snapshots quite easily. There is already a plugin for DNF to use snapper (daemon that allows you to backup/restore snapshots).

So I think if we move it to /usr/lib, that would be helpful in that effort.

Comment 3 Panu Matilainen 2020-06-17 06:02:03 UTC
Btrfs by default? That's an old one, lol. 

Anyway, Colin, if you want to see such a thing happen, I suggest you file this as a system wide change proposal against Fedora >= 34. I've zero motivation to drive such a change myself, but if somebody else wants to do all the required work then I'm not going to say "no" just because. *After the dust from sqlite change has settled*. As in, sqlite has shipped as the default backend in a stable Fedora release.

Comment 6 Ben Cotton 2020-08-11 13:38:34 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 33 development cycle.
Changing version to 33.

Comment 7 Neal Gompa 2020-08-24 18:23:21 UTC
This is for Rawhide still.

Comment 8 Ben Cotton 2021-02-09 15:15:15 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 34 development cycle.
Changing version to 34.

Comment 9 Ben Cotton 2021-08-10 12:48:17 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 35 development cycle.
Changing version to 35.

Comment 10 Neal Gompa 2022-02-14 10:11:23 UTC
This is happening in Fedora Linux 36 now: https://fedoraproject.org/wiki/Changes/RelocateRPMToUsr

Closing this bug as a duplicate of the Change bug.

*** This bug has been marked as a duplicate of bug 2042099 ***