This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
rpm5 [2013-12-11 12:15] glen [Fixing database problems] |
rpm5 [2015-01-13 16:01] (current) glen [Fixing database problems] |
||
---|---|---|---|
Line 21: | Line 21: | ||
<code> | <code> | ||
cd /var/lib/rpm | cd /var/lib/rpm | ||
- | dbX.Y_recover -ev | + | db5.2_recover -ev |
</code> | </code> | ||
==== Querying database ==== | ==== Querying database ==== | ||
- | The semantics of rpm query option **-f** (**--file**) has changed in rpm 5.x; '''rpm -q -f <file-with-path>''' will **not** resolve all symlinks in queried file's path. So the query (assuming ///usr/src/linux// is a symlink to ///usr/src/linux-A.B.C-R//): | + | The semantics of rpm query option **-f** (**%%--file%%**) has changed in rpm 5.x; ''rpm -q -f <file-with-path>'' will **not** resolve all symlinks in queried file's path. So the query (assuming ///usr/src/linux// is a symlink to ///usr/src/linux-A.B.C-R//): |
<code> | <code> | ||
Line 32: | Line 32: | ||
</code> | </code> | ||
- | 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. | + | 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. |
==== poldek error "Too many open files" ==== | ==== poldek error "Too many open files" ==== | ||
Line 140: | Line 140: | ||
==== changes in triggers ==== | ==== changes in triggers ==== | ||
- | Currently webapp register is [[http://lists.pld-linux.org/mailman/pipermail/pld-devel-en/2012-November/023331.html|broken]] due triggers misbehave. here's quick fix for lighttpd: | + | in ''rpm-5.4.10-35'' webapp register was [[http://lists.pld-linux.org/mailman/pipermail/pld-devel-en/2012-November/023331.html|broken]] due triggers misbehave. here's quick fix for lighttpd: |
<code sh> | <code sh> |