Re: Heads-up: RPM 4.16 alpha coming to rawhide

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 4/1/20 10:32 AM, Miroslav Suchý wrote:
Dne 31. 03. 20 v 8:26 Panu Matilainen napsal(a):
# rpmdb --rebuilddb

I always wanted to ask: how the rebuilddb works? The man page states that rpmdb rebuilds db from package headers. Where
are those headers stored?


The database rebuild indeed just reads the headers off the old database, ignoring everything else in there, and builds a new one from scratch. The headers are in the "main database" (RPMDBI_PACKAGES in the API), physical storage differs across the database backends but in the BDB backend people are most familiar with, its the Packages file (in sqlite, its the Packages table instead)

Technically it doesn't matter where the headers come from, they could just as well come from on-disk blobs or a catenated list of headers (which is what rpmdb --exportdb/--importdb does)

	- Panu -
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux