LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-12-2009, 03:45 PM   #1
invader44
Member
 
Registered: Dec 2008
Location: America
Distribution: Ubuntu 11.04
Posts: 64

Rep: Reputation: 15
how to tell what version you are running


Hi,
When you want to figure out what version a program is that you are running, you can do, example programname -v and this will display the program name and the version number it is. This will also display any options they used when they installed the program(if they insalled any options), correct? If they just ran the ./configure without any options when installing the program, it will just show the program name and version number, correct?
thanks vadder
 
Old 10-12-2009, 04:28 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Hi,

'-v' = 'version' may usually occur but not necessarily always, plus the information provided would be up to the coder and may change from version to version. Generalisations are fine as a starting point/ first guess but you should always check the man pages for each app,

cheers

kbp
 
Old 10-12-2009, 04:39 PM   #3
eci2_rich
LQ Newbie
 
Registered: Nov 2006
Location: San Antonio, TX
Distribution: RHES5, Ubuntu
Posts: 4

Rep: Reputation: 0
"-v" or "--version" of sometimes just _programme_ by itself will reveal version if the programmer/versioning-software has set it correctly. If you are trying to ascertain if the binary matches something you already have (e.g. the version number is not actually important), try something like `md5sum` (1) or `sum` (1).
 
Old 10-13-2009, 02:54 AM   #4
Martinezio
Member
 
Registered: May 2009
Location: Warsaw, Poland
Distribution: Slackware64-current
Posts: 191

Rep: Reputation: 32
If You need check version just like ./configure script does, try this command:
Code:
pkg-config --modversion "appname"
Not allways working, but it may be combined with appname variable - for exact name of package grep the names of .pc files in /usr/lib${LIBDIRSUFFIX}/pkgconfig/
You may also cat appname.pc file from this directory for more information about this app
These .pc files are the sources for pkg-config tool and shows You most of applications, even these, that was installed from sources by hand, not t?z packages.

Last edited by Martinezio; 10-13-2009 at 02:55 AM.
 
Old 10-13-2009, 12:29 PM   #5
invader44
Member
 
Registered: Dec 2008
Location: America
Distribution: Ubuntu 11.04
Posts: 64

Original Poster
Rep: Reputation: 15
hey,
Thanks for the replies. The question was if you do programname -v will this show you what options were run at configuring time? For example I did this for a squid and it showed me what version and the extra option that was configured when they installed the program.
Thanks
 
Old 10-14-2009, 02:42 AM   #6
Martinezio
Member
 
Registered: May 2009
Location: Warsaw, Poland
Distribution: Slackware64-current
Posts: 191

Rep: Reputation: 32
Well, only few programs show the configure options. Sometimes this info is also available with pkg-config files. But not always, and not usual For most programs You should remember all used options for future, or before run ./configure script always study ./configure --help
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Which version am I running? Phil8715 Linux - Newbie 8 03-17-2009 12:16 PM
Version Running Pr070n Linux - Newbie 2 05-26-2005 11:48 AM
How do I tell what version I am running? Alotau Linux - Newbie 3 04-11-2005 09:20 PM
Old X version running? nhwk Debian 2 03-06-2004 01:49 PM
How do I see what version I am running TransAmJugo Linux - Software 3 08-04-2003 11:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration