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@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
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@lists.fedoraproject.org

Reply via email to