PLDWWW: Th-RPM
arekm
arekm at pld-linux.org
Thu Nov 15 02:17:05 CET 2007
Author: arekm Date: Thu Nov 15 01:17:05 2007 GMT
Module: PLDWWW URL: http://www.pld-linux.org/Th-RPM?action=diff&rev2=2&rev1=1
---- Log message:
---- Page affected: Th-RPM
---- Diffs:
================================================================
* create backup of /var/lib/rpm directory
* install db4.6-utils (so you will have recovery tools when something goes wrong)
- * edit /usr/lib/rpm/macross and replace _dbi_config_XYZ {{{_dbi_htconfig}}} ocurrences with {{{_dbi_btconfig}}} one. It will look like this:
+ * edit /usr/lib/rpm/macross and replace _dbi_config_XYZ {{{_dbi_htconfig}}} ocurrences with {{{_dbi_btconfig}}} one. Changed version will look like this:
{{{
%_dbi_config_Dirnames %{_dbi_btconfig}
@@ -31, +31 @@
%_dbi_config_Triggername %{_dbi_btconfig}
}}}
* delete almost all files in /var/lib/rpm/ leaving only file named "Packages" (s at the end!)
- * run {{{rpm --rebuilddb}}}. You should now see new database files in /var/lib/rpm/.
+
+ * run {{{rpm --rebuilddb}}}. You should now see new database files in /var/lib/rpm/. Note that you shouldn't care about __db.XXX files. These are temporary files.
+
* check with {{{file /var/lib/rpm/*}}} if new databases are one of these:
+
1. Berkeley DB (Hash, version 8, native byte-order)
2. Berkeley DB (Btree, version 9, native byte-order)
+
+ then everything is OK.
+
* if you still have "Berkeley DB (Hash, version 9, native byte-order)" then there is a problem. Consult with [http://lists.pld-linux.org/ PLD mailing list] subscribers
+
* upgrade rpm package to latest available
+
* run {{{rpm --rebuilddb}}} again to get Hash 8/Btree 9 type of databases
More information about the pld-cvs-commit
mailing list