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?


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


chromium-browser --product-version

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

Hope it helps. :-)

| improve this answer | |

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.

| 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-A69D9E530F96} | findstr /i pv – natxo asenjo Aug 20 '10 at 17:58

In case anyone is interested in getting the version from Chromium source without building it, it's in this file:


and from a compiled chrome, as others mentioned the following works (at least on Ubuntu which I tried)

./chrome --product-version
| improve this answer | |

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

| 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.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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