Sponsored Content
Operating Systems Linux Red Hat Finding version of firefox in directory Post 302991440 by drysdalk on Friday 10th of February 2017 03:02:25 PM
Old 02-10-2017
Hi,

This is a bit of an oddball suggestion to say the least, but if you have a full proper install of Firefox that came from a package or repo somewhere, you might well have the changelog to look at. For example, on my own system (which is admittedly Ubuntu rather than RHEL/CentOS, but it's the only box I have Firefox installed on) I could do something like this:

Code:
zcat /usr/share/doc/firefox/changelog.Debian.gz | head -1 | awk '{print $2}' | sed s/[\(\)]//g

which returns:

Code:
51.0.1+build2-0ubuntu0.16.04.2

So if you have the changelog, you can look at the first line and strip out the version number, basically.

Other than that, if it was installed from a package you could query the rpm database directly, but since it seems you only have access to the files and not a running copy of the other OS build that might not be feasible. If it was installed properly via yum/rpm in the other OS though you could look at the yum.log or something similar, and strip out the version number that way maybe.
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell Command for finding out Firefox version

Hi I need a shell command for finding out Firefox browser verion on linux machine. Waiting for your reply. Thanks and Regards, Kammy. (0 Replies)
Discussion started by: kjannu
0 Replies

2. UNIX for Dummies Questions & Answers

Need Shell script for getting Firefox Browser Version

Hi, How to write a script for finding out firefox version in our linux machine? Could you please share the same? I am using Red Hat Linux machine. Thanks, Kammy (2 Replies)
Discussion started by: kjannu
2 Replies

3. UNIX for Dummies Questions & Answers

Finding file version info

Hi, Is there a standard command for retrieving the version of any given file (assuming the file has a version)? Thanks in advance Dave :) (1 Reply)
Discussion started by: davewg
1 Replies

4. UNIX Desktop Questions & Answers

Finding USB version on command line

Would anyone happen to know what to grep for finding the version of the USB ports are on the system through the command line? Thanks. (1 Reply)
Discussion started by: eightysix
1 Replies

5. Web Development

Finding which firefox thread is misbehaving

Hello, I am trying to find out how to determine which firefox thread is connected to what site. Using: top -H shows the threads but not what they are connected to. The purpose of this is that some sites run nasty cpu eating programs and trying to figure out which ones. Thanks, mgb (1 Reply)
Discussion started by: mgb
1 Replies

6. UNIX for Advanced & Expert Users

Help with finding the right version

Hi, This is real nube like. I want to gt back to some C programming in Unix using an old Armada E500 using Unix V release 4. I've been away from programming and working with Unix for many years, but would like to get into it again. I have a couple of good reference books. If someone could... (3 Replies)
Discussion started by: StashO
3 Replies

7. Solaris

Finding the NIC driver version on Solaris 11

In Solaris 10 it was easy, a simple grep through modinfo output and you'd have the version of any loaded module, including your NIC drivers. In my career I've seen many people relying on this information in their scripts. Now I'm on Solaris 11, and where have the version numbers gone? The... (0 Replies)
Discussion started by: cambridge
0 Replies

8. UNIX for Dummies Questions & Answers

Firefox version

Hello, I'm trying to find the version of Firefox that is on my server. Normally I do this. > firefox -version Mozilla Firefox 10.0.7 The issue is that this version of Firefox, is Firefox ESR 10.0.7. I need to be able to see, from the command line, the version of Firefox and if it is a ESR... (8 Replies)
Discussion started by: bitlord
8 Replies

9. Shell Programming and Scripting

Copy a file from directroy/ prior version to the directory/ new version

How to copy a file from directroy/ prior version to the directory/ new version automatically. (4 Replies)
Discussion started by: roy1912
4 Replies
firefox(1)							   User Commands							firefox(1)

NAME
firefox - Firefox for Sun Java Desktop System SYNOPSIS
firefox [options ... ] [url] DESCRIPTION
Firefox is a free, open-source web browser based on the Mozilla codebase. It is small, fast and easy to use, and offers many advantages over other browsers, such as the ability to block pop-up windows. OPTIONS
The following options are supported: -height value Set the height of startup window to value. -h or -help Display the help message. -width value Set the width of startup window to value. -v or -version Display the version message. -P profile Start with the profile named: profile. -ProfileManager Start with profile manager. -UILocale locale Start with the UI Locale listed: locale. -safe-mode Disables extensions and themes for this session. -jsconsole Open the JavaScript console. -browser Open a browser window. -setDefaultBrowser Set this app as the default browser. EXAMPLES
Example 1: Launching Firefox example% firefox EXIT STATUS
The following exit values are returned: 0 Application exited successfully 1 Application exited with failure FILES
The following files are used by this application: /usr/bin/firefox Executable for Firefox application $HOME/.mozilla/firefox User configuration files for Firefox ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWfirefox | +-----------------------------+-----------------------------+ |Interface stability |Volatile | +-----------------------------+-----------------------------+ SEE ALSO
For more information about firefox, please refer to http://www.mozilla.org/firefox Refer to Help->Help Contents for more information. NOTES
Updated by Evan Yan, Sun Microsystems Inc., 2008. SunOS 5.11 10 Jul 2008 firefox(1)
All times are GMT -4. The time now is 04:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy