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
DH_INSTALLCHANGELOGS(1) 					     Debhelper						   DH_INSTALLCHANGELOGS(1)

NAME
dh_installchangelogs - install changelogs into package build directories SYNOPSIS
dh_installchangelogs [debhelperoptions] [-k] [-Xitem] [upstream] DESCRIPTION
dh_installchangelogs is a debhelper program that is responsible for installing changelogs into package build directories. An upstream changelog file may be specified as an option. If there is an upstream changelog file, it will be installed as usr/share/doc/package/changelog in the package build directory. If the upstream changelog is an html file (determined by file extension), it will be installed as usr/share/doc/package/changelog.html instead. If the html changelog is converted to plain text, that variant can be specified as a second upstream changelog file. When no plain text variant is specified, a short usr/share/doc/package/changelog is generated, pointing readers at the html changelog file. FILES
debian/changelog debian/NEWS debian/package.changelog debian/package.NEWS Automatically installed into usr/share/doc/package/ in the package build directory. Use the package specific name if package needs a different NEWS or changelog file. The changelog file is installed with a name of changelog for native packages, and changelog.Debian for non-native packages. The NEWS file is always installed with a name of NEWS.Debian. OPTIONS
-k, --keep Keep the original name of the upstream changelog. This will be accomplished by installing the upstream changelog as changelog, and making a symlink from that to the original name of the changelog file. This can be useful if the upstream changelog has an unusual name, or if other documentation in the package refers to the changelog file. -Xitem, --exclude=item Exclude upstream changelog files that contain item anywhere in their filename from being installed. upstream Install this file as the upstream changelog. SEE ALSO
debhelper(7) This program is a part of debhelper. AUTHOR
Joey Hess <joeyh@debian.org> 11.1.6ubuntu2 2018-05-10 DH_INSTALLCHANGELOGS(1)
All times are GMT -4. The time now is 03:42 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy