Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
linux:rpm [2008/12/08 17:30] a + updated |
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 / | ||
| + | | ||
| + | |||
| + | alternative with yum | ||
| + | |||
| + | # yum search deallocvt | ||
| + | | ||
| + | No Matches found | ||
| + | |||
| + | This is where yum's whatprovides (provides works in recent yum versions) command works really well: | ||
| + | |||
| + | # yum whatprovides */deallocvt | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| **To rebuild the RPM database:** | **To rebuild the RPM database:** | ||
| rpm --rebuilddb | rpm --rebuilddb | ||

