[PLDWWW] page changed: rpm5

"Jan Rękorajski (baggins)" baggins at pld-linux.org
Thu Dec 13 00:38:38 CET 2012


update

--- https://www.pld-linux.org/rpm5?rev=1355265397
+++ https://www.pld-linux.org/rpm5
@@ -3,15 +3,17 @@
  ===== General information =====
  
  Changes in rpm operation that should interest both users and developers. 
  
- ==== Upgrading from rpm4 and/or older BDB ====
+ ==== Upgrading from rpm4 and/or older BDB or downgrading from BDB 5.3 ====
  
- Rpm database upgrade is done automatically during package installation, so there is need to do anything.\\ //But//, in case that upgrade did not happen for some reason, here is the command to do it manually: 
+ Rpm database upgrade/downgrade is done automatically during package installation, so there is need to do anything.\\ //But//, in case that upgrade/downgrade did not happen for some reason, here is the command to do it manually: 
  
  <code>
- /usr/lib/rpm/bin/dbconvert --rebuilddb
+ /usr/lib/rpm/bin/dbupgrade.sh
  </code>
+ 
+ Remember to **back up** rpm database before running this script.
  
  ==== Fixing database problems ====
  
  You can't just do '''rm -rf /var/lib/rpm/%%__db*%%''' to fix problems anymore, also **--rebuilddb** is largely obsolete in rpm 5 and isn't likely to "fix" anything. Instead do:
@@ -32,17 +34,17 @@
  That returned //kernel-headers-A.B.C-R.arch.rpm// with old rpm, will return nothing with rpm 5.x. You have to do '''readlink -f''' first, or change to symlinked directory and do relative path query. 
  
  ==== DB_BUFFER_SMALL error messages ====
  
- You may see errors like this: 
+ If running rpm built with BDB 5.3 you may see errors like this: 
  
  <code>
  db3.c:1443: dbcursor->pget(-30999): BDB0063 DB_BUFFER_SMALL: User memory too small for return value
  </code>
  
  It appears to be some type of a bug in the BerkleyDB 5.3.x.  In an attempt to workaround the problem, when we encounter this situation we attempt to adjust the size of the mmap buffer until the call works, or we end up trying 10 times. 
  
- If DBI debugging is enabled, additional diagnostics are printed, otherwise a basic retry and success message is added to show that the failure was resolved. 
+ If DBI debugging is enabled, additional diagnostics are printed, otherwise a basic retry and success message is added to show that the failure was resolved.
  
  ===== Vserver maintanance =====
  
  After upgrading rpm on a vserver host you need to convert rpm databases of vservers with external package management (default).


Diff URL:
  https://www.pld-linux.org/rpm5?do=diff&r1=1355265397&r2=1355355517
-- 
This mail was generated by DokuWiki at
https://www.pld-linux.org/


More information about the pld-cvs-commit mailing list