Bug 1847619 - move default rpmdb location to align w/opensuse and rpm-ostree
Summary: move default rpmdb location to align w/opensuse and rpm-ostree
Keywords:
Status: CLOSED DUPLICATE of bug 2042099
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: 36
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Neal Gompa
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-06-16 17:14 UTC by Colin Walters
Modified: 2022-02-14 10:11 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-02-14 10:11:23 UTC
Type: Task
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.