Find the answer to your Linux question:
Results 1 to 5 of 5
hi friends, I'm using centos. I want to know, how to check that rpm is installed or not (through rpm cmd only) thanx...
  1. #1
    Just Joined!
    Join Date
    Jan 2010
    Posts
    8

    how to check that rpm is installed or not (through rpm cmd only)

    hi friends,

    I'm using centos.

    I want to know, how to check that rpm is installed or not (through rpm cmd only)

    thanx

  2. #2
    Linux Enthusiast meton_magis's Avatar
    Join Date
    Oct 2006
    Location
    arizona
    Posts
    665
    [root@server1 ~]# rpm -q httpd
    httpd-2.2.14-1.fc12.i686


    something like that?


    You can find these things out from the man pages.

    $ man rpm
    New to the internet, technical forums, or the hacker / open source community??
    Read this to learn good posting habits http://www.catb.org/~esr/faqs/smart-questions.html

    RHCE for RHEL version 5
    RHCT for RHEL version 4

  3. #3
    Just Joined!
    Join Date
    Jan 2010
    Location
    India
    Posts
    5
    type

    rpm -qa *<part of rpm name>

    u can even use

    yum list *<part of installebles>

  4. #4
    Linux Newbie
    Join Date
    Oct 2008
    Posts
    140
    Just type the command at any command line. You'll either get a help file, or a "command not found" error.
    You can check for any installed package with the -q option.
    [me@mybox ~]$rpm -q firefox
    firefox-3.0.15-1.fc10.x86_64
    On my machine. Happy computing.

  5. #5
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568

    Exclamation

    I agree with others,normally I use
    rpm -qa | grep mysql
    which will fetch all mysql related packages list
    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...