Difference between revisions of "Rpm"

From Notes_Wiki
m
m
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<yambe:breadcrumb>Package_management_tools|Package management tools</yambe:breadcrumb>
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[System administration tools]] > [[Package management tools]] > [[Rpm|rpm]]
=rpm=


==Finding which package installed given file==
*[[Creating rpm packages]]
*[[Miscellaneous rpm issues]]


Many times we require to know the name of the page which installed a given file.  In such cases one can use:
'''Consider looking at related articles at:'''
<pre>
* [[yum]]
rpm -qf &lt;full-path-of-file&gt;
* [[CentOS 7.x yum]]
</pre>
* [[Advantages of using package managers]]
to list the name of the rpm package.




==Resolving rpm database corruption error==
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[System administration tools]] > [[Package management tools]] > [[Rpm|rpm]]
 
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>

Latest revision as of 12:20, 28 July 2022