LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-27-2006, 02:40 PM   #1
landog
LQ Newbie
 
Registered: Jan 2006
Posts: 23

Rep: Reputation: 0
what is the version of everything???


How can I tell the version I have installed of the following?

Linux
PHP
MySQl
Apache

(This IS the newbie category, right? )

thanks
-dog
 
Old 02-27-2006, 02:47 PM   #2
esteeven
Senior Member
 
Registered: Oct 2001
Location: Bristol UK
Distribution: Arch Slackware Ubuntu
Posts: 1,082

Rep: Reputation: 52
oops. sorry.

Last edited by esteeven; 02-27-2006 at 02:52 PM.
 
Old 02-27-2006, 02:47 PM   #3
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 62
Quote:
Originally Posted by landog
How can I tell the version I have installed of the following?

Linux
PHP
MySQl
Apache

(This IS the newbie category, right? )

thanks
-dog
1. uname -r
2. php --version
3. mysql --version
4. httpd --version
 
Old 02-27-2006, 02:49 PM   #4
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
this is a distro-specific question, since not all distros use the same packet management system (rpm,deb,tgz etc), so better provide some info about your distro.

Anyway in most cases you can also find this out by using the --version option in the executables

Code:
skalkoto@darkstar:~$ mysql --version
mysql  Ver 14.12 Distrib 5.0.18, for slackware-linux-gnu (i486) using  EditLine wrapper
What do you mean with linux?
linux is as a kernel or as a distro.

You can find out the kernel version with this command:
Code:
skalkoto@darkstar:~$ uname -r
2.6.15.3
skalkoto@darkstar:~$
 
Old 02-28-2006, 07:49 AM   #5
Dtsazza
Member
 
Registered: Oct 2005
Location: Oxford, UK
Distribution: Debian Etch (w/ dual-boot XP for gaming)
Posts: 282

Rep: Reputation: 31
...and the distro (and version) can be found in some *version file inside /etc; for example:
Code:
adoyle@dangermouse:~$ ls /etc/*version
/etc/debian_version               <-- tells me I'm running some version of Debian
adoyle@dangermouse:~$ cat /etc/debian_version 
testing/unstable                  <-- the version of Debian I'm running
The same holds for every distro I'm aware of; some (e.g. RedHat) combine both distro and version in an /etc/version file.
 
Old 02-28-2006, 08:19 AM   #6
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
Sounds like somebody's homework to me.
 
Old 02-28-2006, 08:37 AM   #7
Dtsazza
Member
 
Registered: Oct 2005
Location: Oxford, UK
Distribution: Debian Etch (w/ dual-boot XP for gaming)
Posts: 282

Rep: Reputation: 31
If so, homework's got a lot easier since I were a lad*...

*and I'm only 22 now!
 
  


Reply



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
Regarding distribution + kernel version + gcc version + glib version. JCipriani Linux - General 8 04-19-2008 02:54 PM
redhat fedora gcc version (compiled for 2.4.20) doesn't match kernel version 2.4.22 start1000 Linux - Software 0 03-16-2004 08:17 PM
Xfree Error (EE) module ABI minor version (7) is newer than the server's version (6) jimdaworm Slackware 0 10-17-2003 05:26 PM
Xfree prob radeon.o kernel module version is 1.1.1 but version 1.5.0 or newer needed. jimdaworm Slackware 0 10-01-2003 06:27 PM
Sample Driver Module incompatibility with Kernel version (or gcc version) jvs Linux - General 1 06-07-2002 01:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:17 AM.

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