SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
'-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,
"-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).
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.
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
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.