Yum & rpm
How can i know which rpm package is installed either by rpm or yum ?
|
Quote:
"rpm -qa" will give you a start. Read the man pages on yum. |
To find if you have a particular program, like opera, you can use either of
rpm -q opera whereis opera The form "rpm -qi" tells you a lot about the program. You could use yum list installed opera but yum will download all the information to update your records of the repository before answering the question. Of course, you could just use the gui front end provided, like packagekit or apper. |
Note that yum is just a front end to RPM, so both of them ultimately work off the same package database. As far as I know, there's no way to tell whether a package was installed by the rpm command vs. the yum command.
|
The cheater way to find out whether you've installed with Yum or RPM is to see if the install was logged in yum.log. So, when you find the name of the program you want to check was installed, do:
Quote:
If it's not there, it won't have been installed by Yum. To check whether it was installed by RPM, do: Quote:
|
I think the yum.log gets rotated occasionally, so checking there might not be 100% reliable, but it's better than nothing.
To the OP: why do you care how a package was installed? If you tell us what problem you're trying to solve, we might be able to help further. |
As btmiller points out, yum is just a front-end to rpm, so checking the yum.log or using 'rpm -aq ...' just shows if those tools installed it.
You can't tell the difference between yum/rpm ... |
All times are GMT -5. The time now is 08:42 AM. |