Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-13-2004, 06:16 AM   #1
LQ Newbie
Registered: Dec 2004
Posts: 13

Rep: Reputation: 0
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.

(Mandrake 10.1 )
Old 12-13-2004, 06:20 AM   #2
Registered: Mar 2004
Location: Minnesota
Distribution: Fedora Core 1, Mandrake 10
Posts: 405

Rep: Reputation: 30
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,
Old 12-13-2004, 06:20 AM   #3
Registered: Sep 2003
Location: chikyuu (E103N6)
Distribution: Redhat 8.0 (2.4.25-custom), Fedora Core 1 (2.4.30-custom)
Posts: 357

Rep: Reputation: 30
rpm -q package-name


rpm -qa | grep package-name
Old 12-14-2004, 12:19 AM   #4
LQ Newbie
Registered: Nov 2004
Posts: 29

Rep: Reputation: 15
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,
Old 12-14-2004, 09:41 AM   #5
Registered: Dec 2003
Location: Houston
Distribution: Knoppix,lenova yoga 3, Samsung s6 -android
Posts: 307

Rep: Reputation: 30
You can also use the whereis command or the locate command.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
RPM package manager says package needs to be installed. But I already installed it! nick623 Linux - Software 2 05-24-2005 02:15 AM
rpm: package is / is not installed ??? blue.spark Linux - Software 3 02-26-2005 09:29 AM
How to check SW installed not by rpm maxgg Linux - Newbie 1 12-23-2004 09:29 AM
rpm package not installed? dwarf007 Linux - Newbie 1 12-06-2004 03:52 PM
How to check if such xyz.rpm is already installed? copernicus Linux - Newbie 4 10-16-2003 12:28 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:47 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration