Thursday, February 3, 2011

How to find the browser versions from command-line in Linux & Windows?

Hi Folks,

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 please don't ask what is my point. I just want to know it for fun!

Help please!

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

    sanksjaya : 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 : Thanks! Post here if you have an answer for doing the same from Windows CMD (command-line) utility.
    natxo asenjo : So you can get the version of IE (tested in xp): reg query "hklm\software\microsoft\internet explorer" | findstr /i version
    natxo asenjo : 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
    From GruffTech
  • 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

    sanksjaya : Cool. Thanks! But there doesn't seem to be one to check the build version.
  • Per Technet, there is no way to get the IE version from the command line on Windows. The "-v" switch is UNIX-only.

0 comments:

Post a Comment