How to find the browser versions from command-line in Linux & Windows?
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
- Chromium on Linux & Windows (7) [Couldn't get to work with this link and this link
- Firefox on Windows (7)
- 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?
Solution 1:
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. :-)
Solution 2:
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.
Solution 3:
In case anyone is interested in getting the version from Chromium source without building it, it's in this file:
src/chrome/VERSION
and from a compiled chrome, as others mentioned the following works (at least on Ubuntu which I tried)
./chrome --product-version