LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Finding out the version of a program (https://www.linuxquestions.org/questions/linux-software-2/finding-out-the-version-of-a-program-294745/)

purefan 02-25-2005 11:19 AM

Finding out the version of a program
 
Hello!
I am using Mandrake 9.1 in a dual booting system (w/ Windows XP).
I read sometimes in the requirements of a program that a specific version of a dependency is needed, for example: installing 'Knights', in the webpage (http://knights-chess.com/download.php) it says:

Knights requires that you have the following already installed:

* K Desktop Environment v3.x
* Autoconf v2.53
* Automake v1.6.1

Now, how do I know which versions do I have installed???
Is there a command that checks that???
(With KDE I know the version since it shows it while loading but that's not what I need)

thanks =D

Artanicus 02-25-2005 11:24 AM

Well, there is no uniform system to track the version numbers, but here are a few almost standard ways:

Most programs that have a single main binary know the --version or -V parameter, so for eg:
bash --version
will return something like:
GNU bash, version 3.00.15(2)-release (i486-slackware-linux-gnu)
Copyright (C) 2004 Free Software Foundation, Inc.

The switch can vary from program to program, but they documentation allways should refer to it.. And the documentation usually has the version printed somewhere..

Then, on the shadier packages that you might have no idea what they do, or what to ask their version for.. Now, slackware has a pretty good system on keeping track of its packages and their versions, but I believe the rpm based distrosalso have something similar embedded into the rpm system. So:
man rpm
might reveal the command to enquire the version of installed packages

wipe 02-25-2005 03:41 PM

These work for me:
1) When you know the package name: rpm -q kdebase (kdebase is just an example).
2) When you have to search for it: rpm -qa "kde*".

On Mandrake, you can (and probably should) use urpmi and/or its graphical frontend Rpmdrake. See: http://www.mandrakehelp.com/RPM-HOWTO.html.

I use my own script that creates lists of all the packages.

Some Knights RPM's can be found with rpm.pbone.net.

Regards
Simon

purefan 02-25-2005 06:37 PM

Thanks a lot!
Both answers worked great for me.
I now know that I must update both my autoconf and automake since I dont have the min requirements.


All times are GMT -5. The time now is 09:47 AM.