Difference between revisions of "Rpm"
From Notes_Wiki
m |
m |
||
Line 9: | Line 9: | ||
</pre> | </pre> | ||
to list the name of the rpm package. | to list the name of the rpm package. | ||
==Resolving rpm database corruption error== | |||
Sometimes rpm or yum can give following error: | |||
<pre> | |||
rpmdb: Thread/process 6672/140703954818816 failed: Thread died in Berkeley DB library | |||
error: db3 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery | |||
error: cannot open Packages index using db3 - (-30974) | |||
error: cannot open Packages database in /var/lib/rpm | |||
</pre> | |||
which can be resolved using following steps: | |||
<pre> | |||
rm -rf /var/lib/rpm/__db.00* | |||
db_verify /var/lib/rpm/Packages | |||
rpm --rebuilddb | |||
</pre> | |||
<yambe:breadcrumb>Package_management_tools|Package management tools</yambe:breadcrumb> |
Revision as of 10:48, 20 May 2013
<yambe:breadcrumb>Package_management_tools|Package management tools</yambe:breadcrumb>
rpm
Finding which package installed given file
Many times we require to know the name of the page which installed a given file. In such cases one can use:
rpm -qf <full-path-of-file>
to list the name of the rpm package.
Resolving rpm database corruption error
Sometimes rpm or yum can give following error:
rpmdb: Thread/process 6672/140703954818816 failed: Thread died in Berkeley DB library error: db3 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery error: cannot open Packages index using db3 - (-30974) error: cannot open Packages database in /var/lib/rpm
which can be resolved using following steps:
rm -rf /var/lib/rpm/__db.00* db_verify /var/lib/rpm/Packages rpm --rebuilddb
<yambe:breadcrumb>Package_management_tools|Package management tools</yambe:breadcrumb>