Follow us on...
Follow us on Twitter Follow us on Facebook
Register
Results 1 to 6 of 6
  1. #1
    vikingshelmut's Avatar
    vikingshelmut is offline 100% Bull Plop
    Join Date
    Dec 2001
    Location
    Cupertino, CA
    Posts
    66
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question How do you check the version of a unix binary?

    I can't remember if this is possible, but I'd like to check the version of some unix binaries I've installed.

    For example, I'd like to be able to use a Terminal command to tell me what version of MySQL or GiMP or whatever, I have installed. I know you can use Fink, since that is what I installed these binaries with.

    I'd like to know a universal terminal command to check the version of any unix app i have installed.

    Any ideas?

    Also, I know that you can check the what version of perl I have installed by typing:
    perl -v
    This seams to only work for perl, so it must be a variable specific to perl only.

    Any guru's know this?

  2. #2
    nickn is offline Registered User
    Join Date
    Feb 2003
    Posts
    68
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Most of the time you do a -v flag or something of the such, for every command though, I'd try "man command" it should tell you what to use to check the version of that specific program.
    - nick

  3. #3
    Darkshadow's Avatar
    Darkshadow is offline wandering shadow
    Join Date
    Jul 2001
    Location
    DE, USA
    Posts
    1,532
    Thanks
    0
    Thanked 1 Time in 1 Post
    Mostly the -v option works (sometimes you need to do --v), but this has to be programmed in, and not all of them support it. Some of them also support -help or --help, and will tell you what options there are.
    I am but a lonely shadow,
    Doomed forever to roam and wander.
    But if you allow me to pause before I must go,
    I'll spin you tales of mystery and wonder.

  4. #4
    nickn is offline Registered User
    Join Date
    Feb 2003
    Posts
    68
    Thanks
    0
    Thanked 0 Times in 0 Posts
    However like I said..I'd say 4 out of every 5 will say in "man command" --help and all is is guessing, why try -v, than --v, than -help, than --help , instead of just doing "man blah" and finding out for sure ?

    the man command is your friend, use it.
    - nick

  5. #5
    btoneill's Avatar
    btoneill is offline keeper of the cheese
    Join Date
    Jul 2002
    Location
    Minneapolis, MN
    Posts
    797
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Not all applications have man pages, not all man pages list the version number, and not all man pages are correct and/or upto date. I've seen man pages for apps where the man page hasn't been updated in 5 years because none of the features of the app have changed, but the app has been updated. Checking the version in the man page may give you the right version, it may not, I'd check the man page for the version as a last resort.

    Brian
    UNIX is simple and coherent, but it takes a true genius (or a programmer at any rate) to understand and appreciate its simplicity -- Dennis Ritchie

  6. #6
    michaelsanford is offline Translator, Web Developer
    Join Date
    Oct 2002
    Location
    Ottawa/Montréal
    Posts
    2,280
    Thanks
    0
    Thanked 5 Times in 5 Posts
    btoneill, that is absolutely true. For a great example, do "man rm" and you'll see this nice "BSD - December 5, 1994" at the bottom

    What do you need to check the versions for, incidentally? Curiosity, or do you have dependancy issues for software you're compiling?

 

 

Similar Threads

  1. complier differences
    By tim_mcd in forum Software Programming & Web Scripting
    Replies: 3
    Last Post: February 15th, 2003, 10:27 AM
  2. which 'unix' version is darwin using?
    By mkwan in forum Unix & X11
    Replies: 4
    Last Post: September 22nd, 2002, 11:55 AM
  3. Replies: 5
    Last Post: September 3rd, 2002, 08:47 AM
  4. How do I check versions in UNIX???
    By pwharff in forum Unix & X11
    Replies: 5
    Last Post: July 23rd, 2002, 03:08 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •