Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux:rpm [2009/05/25 00:35]
127.0.0.1 external edit
linux:rpm [2010/12/12 11:46] (current)
a
Line 21: Line 21:
 **To see what package owns a file:** **To see what package owns a file:**
    rpm -qf filename    rpm -qf filename
 +
 +example:
 +
 +   # rpm -qf /usr/bin/free
 +     procps-3.2.8-14.fc14.x86_64
 +
 +alternative with yum
 +
 +   # yum search deallocvt
 +   Warning: No matches found for: deallocvt
 +   No Matches found
 +
 +This is where yum's whatprovides (provides works in recent yum versions) command works really well:
 +
 +   # yum whatprovides */deallocvt
 +   kbd-1.15-11.fc14.x86_64 : Tools for configuring the console
 +   Repo        : fedora
 +   Matched from:
 +   Filename    : /usr/bin/deallocvt
 +
 **To rebuild the RPM database:** **To rebuild the RPM database:**
    rpm --rebuilddb    rpm --rebuilddb
linux/rpm.1243204502.txt.gz ยท Last modified: 2010/12/12 11:46 (external edit)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 ipv6 ready