Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

In ubuntu when I just open a terminal and say "firefox -v" or "konqurer -v" it prints all the version information.

But, I am not able to find how to go about this for

  1. Chromium on Linux & Windows (7) [Couldn't get to work with this link and this link
  2. Firefox on Windows (7)
  3. IE on Windows (7)

Previously on Windows xp executing "someexe.exe /?" used to show help and command line options for that exe. But it doesn't seem to be working for Windows 7. I tried "Chrome.exe /?" and it just starts chrome.

I know how to get it in GUI, but I would like to script it. How can I do this?

share|improve this question

4 Answers 4

It depends on the linux flavor, but if its an RPM-Based OS (RedHat & its darivities mainly)

  rpm -qa | grep browsername 

usually does the trick.

share|improve this answer
    
Awesome! I was looking for the debian version of it. #apt-cache policy packagename or #apt-cache madison packagename Apt-cache doesn't require "sudo". –  sanksjaya Aug 18 '10 at 22:47
    
Thanks! Post here if you have an answer for doing the same from Windows CMD (command-line) utility. –  sanksjaya Aug 18 '10 at 22:48
1  
So you can get the version of IE (tested in xp): reg query "hklm\software\microsoft\internet explorer" | findstr /i version –  natxo asenjo Aug 20 '10 at 17:57
1  
so of google chrome (installed as a normal user): C:\>reg query HKEY_CURRENT_USER\Software\Google\Update\Clients\{8A69D345-D564-463c-AFF1-A69D9E‌​530F96} | findstr /i pv –  natxo asenjo Aug 20 '10 at 17:58

I can't find a version command line switch for Chrome in Windows; in general the command line switches begin with -- rather than a single -, and a good list of known ones appears here: http://www.waltercedric.com/component/content/article/1713.html

share|improve this answer
    
Cool. Thanks! But there doesn't seem to be one to check the build version. –  sanksjaya Aug 19 '10 at 3:05

Per Technet, there is no way to get the IE version from the command line on Windows. The "-v" switch is UNIX-only.

share|improve this answer

I know this is a old question but it might help someone. (Donnow about Windows haven't used it in a long time ;)

Chromium and Google Chrome for Linux both have a command line flag to output the version. You can find them like:

google-chrome --product-version

and

chromium-browser --product-version

Many other interesting command line flags here: http://peter.sh/experiments/chromium-command-line-switches/

Hope it helps. :-)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.