[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
--initdb
- From: Tony Nelson <tonynelson georgeanelson com>
- To: RPM Package Manager <rpm-list redhat com>
- Subject: --initdb
- Date: Thu, 30 Nov 2006 17:08:21 -0500
Does "rpm --initdb" ever delete database files, specifically the Packages
file? Is it safe to do "rpm --initdb ; rpm --rebuilddb"? I want to get
straight what "rpm --initdb" does, so I don't give bad advice.
I had read that --initdb created a fresh, new database, as implied by "man
rpm", wiping out the old database. Others have disagreed, and it seems
that they are right. I looked casually at the RPM source code for --initdb
(stopping when it called through a function pointer), and it looks like
--initdb only tries to open / create the database file(s), and won't
replace existing files. I ran "rpm -vv --initdb --dbpath
/my/broken/database", and it only mentioned the Packages file.
--
____________________________________________________________________
TonyN.:' The Great Writ <mailto:tonynelson georgeanelson com>
' is no more. <http://www.georgeanelson.com/>
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]