LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   bash command question (https://www.linuxquestions.org/questions/linux-software-2/bash-command-question-100302/)

BajaNick 10-04-2003 07:48 PM

bash command question
 
Whats the bash command to find out the software version of a program. I forgot. Thanks

eric.r.turner 10-04-2003 08:11 PM

AFAIK, there isn't a single bash command to find out the version of a program. Finding out the version of a program depends on the program! Usually a program will take a flag telling it to spit out the version (e.g. -v, -version, or --version.) For example

Code:

eric.r.turner@dijkstra:~$ gcc --version
gcc (GCC) 3.2.2
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


BajaNick 10-04-2003 10:45 PM

LOL, gcc is exactly what im trying to install. I did gcc and gcc --version but i get nothing. thanks

trickykid 10-05-2003 12:01 AM

What does this question have to do with programming? Its been reported to be moved to a more appropiate forum.

Regards.

jinksys 10-05-2003 03:21 PM

GCC is a compiler, that is what it has to do with programming...

trickykid 10-05-2003 07:36 PM

Quote:

Originally posted by jinksys
GCC is a compiler, that is what it has to do with programming...
He originally didn't say anything about gcc but that is besides the point. He was originally asking what command to find out the version of software...

That's why it doesn't belong in Programming.... so reread the first question and post before making comments please. Thanks.

jinksys 10-05-2003 07:42 PM

Quote:

Originally posted by trickykid
so reread the first question and post before making comments please. Thanks.
It had already been stated he was having trouble with GCC
before either one of us commented.

trickykid 10-05-2003 07:47 PM

Quote:

Originally posted by jinksys
It had already been stated he was having trouble with GCC
before either one of us commented.

Yeah, he's created about a dozen threads regarding gcc but not in this thread and not his intention originally with his question. Even if he did ask how to find the version of gcc with a command, its still not directly a programming question. Others might not have known he was speaking of gcc, so this thread does not belong in Programming. Bottom line, so lets drop it now!

jinksys 10-05-2003 07:56 PM

Agreed!


All times are GMT -5. The time now is 03:06 AM.