6/6/12

Find RPM for a certain file

I need to install GHC7.4.1. But the version of GHC that come with Fedora 16 is 7.0.4. So I did a "yum remove ghc" to uninstall it. But GHC (/usr/bin/ghci) was still there. I then found the command for looking up a RPM associated with a certain file is "rpm -q --whatprovides filename_fullpath". So I did:
rpm -q --whatprovides /usr/bin/ghc
, it tells me the RPM name is: "ghc-compiler". I then "yum remove ghc-compiler" to uninstalled GHC 7.0.4 and proceeded to install GHC 7.4.1.

No comments: