rpm5
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rpm5 [2012-12-11 23:36] – cosmetics baggins | rpm5 [2015-01-13 16:01] (current) – [Fixing database problems] glen | ||
---|---|---|---|
Line 5: | Line 5: | ||
Changes in rpm operation that should interest both users and developers. | 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, | + | Rpm database upgrade/ |
< | < | ||
- | / | + | / |
</ | </ | ||
+ | |||
+ | Remember to **back up** rpm database before running this script. | ||
==== Fixing database problems ==== | ==== Fixing database problems ==== | ||
- | You can't just do ''' | + | You can't just do '' |
< | < | ||
cd / | cd / | ||
- | dbX.Y_recover | + | db5.2_recover |
</ | </ | ||
==== Querying database ==== | ==== Querying database ==== | ||
- | The semantics of rpm query option **-f** (**--file**) has changed in rpm 5.x; ''' | + | The semantics of rpm query option **-f** (**%%--file%%**) has changed in rpm 5.x; '' |
< | < | ||
Line 30: | Line 32: | ||
</ | </ | ||
- | That returned // | + | That returned // |
+ | |||
+ | ==== poldek error "Too many open files" ==== | ||
+ | |||
+ | You have to remove .poldek-cache directory if, after rpm/poldek ugrade, you see error similiar to the following: | ||
+ | |||
+ | < | ||
+ | Loading [pndir]th... | ||
+ | Loading [pndir]th... | ||
+ | 19616 packages read | ||
+ | Loading [rpmdbcache]/ | ||
+ | rpmdb: / | ||
+ | error: db_init: | ||
+ | error: cannot open Packages(0) index: Too many open files(24) | ||
+ | DB: Berkeley DB 5.2.36: (September 14, 2011) | ||
+ | error: // | ||
+ | Abort | ||
+ | </ | ||
==== DB_BUFFER_SMALL error messages ==== | ==== 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: |
< | < | ||
Line 42: | Line 61: | ||
It appears to be some type of a bug in the BerkleyDB 5.3.x. | It appears to be some type of a bug in the BerkleyDB 5.3.x. | ||
- | 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. |
+ | |||
+ | ==== poldek: filesystem marks FHS (cap //) ==== | ||
+ | |||
+ | < | ||
+ | # poldek -u filesystem | ||
+ | Processing dependencies... | ||
+ | filesystem-4.0-1.x86_64 obsoleted by filesystem-4.0-26.x86_64 | ||
+ | filesystem-4.0-26.x86_64 marks FHS-2.3-35.x86_64 (cap //) | ||
+ | error: FHS-2.3-35.x86_64: | ||
+ | </ | ||
+ | To fix, upgrade poldek, and invoke '' | ||
===== Vserver maintanance ===== | ===== Vserver maintanance ===== | ||
Line 80: | Line 110: | ||
==== Excluding dependencies ==== | ==== Excluding dependencies ==== | ||
- | Regexp patterns for '' | + | Regexp patterns for '' |
<code rpmspec> | <code rpmspec> | ||
Line 110: | Line 140: | ||
==== changes in triggers ==== | ==== changes in triggers ==== | ||
- | Currently | + | in '' |
<code sh> | <code sh> |
rpm5.1355265397.txt.gz · Last modified: 2012-12-11 23:36 by baggins