LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to check if a rpm Package is already installed? (http://www.linuxquestions.org/questions/linux-newbie-8/how-to-check-if-a-rpm-package-is-already-installed-265863/)

DarkExile 12-13-2004 07:16 AM

How to check if a rpm Package is already installed?
 
sorry if it is a stupid question, but iŽd like to know how can i check if all packages listed by urpmi (or which one of them) are already installed.



Thanks
DarkExile
(Mandrake 10.1 )

jeffreybluml 12-13-2004 07:20 AM

Not sure if this is what you're after, but

rpm -q <part_of_package_name>

Will tell you if a package is installed. For instance,

rpm -q apache

Will tell you if any versions of apache are installed. To then uninstall a package,

rpm -e <package_name_returned_from_-q>

Good luck,

chii-chan 12-13-2004 07:20 AM

rpm -q package-name

OR

rpm -qa | grep package-name

alnreddy 12-14-2004 01:19 AM

rpm -qi <part_of_package_name>

Will tell you if a package is some descripition of that rpm.In your system that rpm is there.

rpm -q apache

Will tell you if any versions of apache are installed. To then uninstall a package,

rpm -e <package_name_returned_from_-q>

We already install that rpm then this command is type erase that rpm (unistall).

Good luck,

laceupboots 12-14-2004 10:41 AM

You can also use the whereis command or the locate command.


All times are GMT -5. The time now is 06:53 PM.