Operating System - HP-UX
1844208 Members
2661 Online
110229 Solutions
New Discussion

Re: Command to find out version/release of software?

 
Huiqi Liu
Occasional Advisor

Command to find out version/release of software?

What is the command (if there is one) to find out the version/release of a binary file, e.g., named?

Thanks.
9 REPLIES 9
John Palmer
Honored Contributor

Re: Command to find out version/release of software?

Try:-

what /usr/sbin/named

have a look at 'man what'
Alex Glennie
Honored Contributor

Re: Command to find out version/release of software?

try what & chatr for the libs etc
Bruce Laughlin
Frequent Advisor

Re: Command to find out version/release of software?

Hi,

The what(1) command will give you version info, if it exists:# what /usr/sbin/named
/usr/sbin/named:
Copyright (c) 1986, 1989, 1990 The Regents of the University of Califor
nia.
named 4.9.7 Wed Sep 2 09:39:12 GMT 1998 PHNE_14618

Bruce

Vikas Khator
Honored Contributor

Re: Command to find out version/release of software?

Hi,

what /usr/sbin/named .

Most of the commands usually have a parameter that will give you the version number.

Hope this helps.
Keep it simple
Chris Garman
Frequent Advisor

Re: Command to find out version/release of software?

I think the command you are after is
'what '.

Chris
Bruce Laughlin
Frequent Advisor

Re: Command to find out version/release of software?

Hi,

The what(1) command will give you version info, if it exists:# what /usr/sbin/named
/usr/sbin/named:
Copyright (c) 1986, 1989, 1990 The Regents of the University of Califor
nia.
named 4.9.7 Wed Sep 2 09:39:12 GMT 1998 PHNE_14618

Bruce

James R. Ferguson
Acclaimed Contributor

Re: Command to find out version/release of software?

Hi;

The 'what' command returns the version information if it follows the string '@(#)'. In fact, all strings so prefixed are reported. See: man what.

...JRF...
Huiqi Liu
Occasional Advisor

Re: Command to find out version/release of software?

Thanks guys. I should have known really!
Rick Garland
Honored Contributor

Re: Command to find out version/release of software?

The what command will tell you the version. Also there are some commands that recognize the -v switch to the command. Example, perl -v will inform you of the version.