Find the answer to your Linux question:
Results 1 to 5 of 5
hai can anybody guide me how to know mozilla installed directoy irrespective of version is there any environment variable to know mozilla installed version directory, thanks & Regards kelvin philips...
  1. #1
    Just Joined!
    Join Date
    Apr 2007
    Posts
    2

    how to know mozilla installed directory

    hai
    can anybody guide me how to know mozilla installed directoy irrespective of version
    is there any environment variable to know mozilla installed version directory,

    thanks & Regards
    kelvin philips

  2. #2
    Just Joined! s13884's Avatar
    Join Date
    Apr 2007
    Posts
    26

    Thumbs up

    hello dude

    u can check by use of the command "rpm -qa packagename"

    if u used fedora core or red hat then rpm is okay.
    rpm = redhat package manager.

    if you have another distro then lemme know.

    packagename = mozilla/firefox/vsfted anythig u want to check the version of any package.

    If it's already installed then it will give the ouptput like this
    Ex : ftp-2.1.3.5

    first check this if it will be okay................. but still u not able to show the version then let me know....

    I'll give u the solution.

    cheers
    Linux Is Rocking

  3. #3
    Linux Enthusiast likwid's Avatar
    Join Date
    Dec 2006
    Location
    MA
    Posts
    649
    rpm -qa won't tell you where it's installed. If you mean the mozilla binary, type
    Code:
    which mozilla
    The which command tells you where a command will be executed from in your path if you just type "mozilla"

    If you want to know where related files are installed and you are using rpm, the command is similar to the one above, except it's

    Code:
    rpm -ql mozilla

  4. #4
    Just Joined! s13884's Avatar
    Join Date
    Apr 2007
    Posts
    26

    Wink

    Quote Originally Posted by likwid View Post
    rpm -qa won't tell you where it's installed. If you mean the mozilla binary, type
    Code:
    which mozilla
    The which command tells you where a command will be executed from in your path if you just type "mozilla"

    If you want to know where related files are installed and you are using rpm, the command is similar to the one above, except it's

    Code:
    rpm -ql mozilla

    hay man "which" command is just to know the location of installed directory

    cheers

  5. #5
    Linux Enthusiast likwid's Avatar
    Join Date
    Dec 2006
    Location
    MA
    Posts
    649
    I'm not sure if you're asking a question or making a statement. The concept of a single "installation directory" isn't valid for most applications in linux. There are libraries, configurations, and binaries that may be stored across different locations on the system. The "which" command takes a look at its argument and tells you from "which" location it would be executed. This is good for determining where a binary might be located. rpm -ql will list all files associated with a package installed via rpm.

Posting Permissions

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