LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-04-2003, 07:48 PM   #1
BajaNick
Senior Member
 
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737

Rep: Reputation: 46
bash command question


Whats the bash command to find out the software version of a program. I forgot. Thanks
 
Old 10-04-2003, 08:11 PM   #2
eric.r.turner
Member
 
Registered: Aug 2003
Location: Planet Earth
Distribution: Linux Mint
Posts: 216

Rep: Reputation: 31
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.
 
Old 10-04-2003, 10:45 PM   #3
BajaNick
Senior Member
 
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737

Original Poster
Rep: Reputation: 46
LOL, gcc is exactly what im trying to install. I did gcc and gcc --version but i get nothing. thanks
 
Old 10-05-2003, 12:01 AM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

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

Regards.
 
Old 10-05-2003, 03:21 PM   #5
jinksys
Member
 
Registered: Aug 2003
Location: 63123
Distribution: OpenSuSE/Ubuntu
Posts: 419

Rep: Reputation: 35
GCC is a compiler, that is what it has to do with programming...
 
Old 10-05-2003, 07:36 PM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
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.
 
Old 10-05-2003, 07:42 PM   #7
jinksys
Member
 
Registered: Aug 2003
Location: 63123
Distribution: OpenSuSE/Ubuntu
Posts: 419

Rep: Reputation: 35
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.
 
Old 10-05-2003, 07:47 PM   #8
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
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!
 
Old 10-05-2003, 07:56 PM   #9
jinksys
Member
 
Registered: Aug 2003
Location: 63123
Distribution: OpenSuSE/Ubuntu
Posts: 419

Rep: Reputation: 35
Agreed!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
bash: <command name> command not found smash Programming 5 03-13-2006 08:48 AM
The ! bash command. How do I use it? funkynesh Linux - Newbie 2 10-12-2005 08:36 PM
Trivial bash question - executing $COMMAND atom Programming 4 06-05-2005 04:17 AM
Bash Scripting - echo command question gbhil Programming 2 04-27-2005 07:27 PM
noobie bash command question SamerAdra Linux - Newbie 5 10-26-2004 02:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:49 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