LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-01-2006, 01:14 AM   #1
vikasumit
Member
 
Registered: Apr 2006
Location: Delhi, India
Distribution: Fedore , CentOs, Debian
Posts: 121

Rep: Reputation: 15
Which Linux Distro


Hi,

I am having hard time finding which linux distro is installed on server...

I don't know how to detect which linux distro and version is installed on server, I am web developer and every here and there my customer provide me with their Linux root access and ask me to update php and mysql as my requirement, but I always get stuck with what distro they are using, all the can tell me is they are using RedHat ent or fedore or CentOS but which version or variant they don't know...

how can I detect that ... I generally run cat /proc/version to try to find this information, but its of no use as per my understanding ..
 
Old 08-01-2006, 01:20 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
You could also try
Code:
uname -a
to retrieve some kernel information, but that might not be of much help either..the distributions don't have any "common" place to store the information in. But if it's some kind of RedHat-based thing, and uses rpm packets, you could try to look at what versions of the packages there are installed and compare them to what the distributions you mentioned include, to try and determine which version it is.

Alternatively you could ask the person who installed the system.
 
Old 08-01-2006, 01:24 AM   #3
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
There might also be a file in /etc, e.g. Slackware has /etc/slackware-version (or something like that).
 
Old 08-01-2006, 01:25 AM   #4
vikasumit
Member
 
Registered: Apr 2006
Location: Delhi, India
Distribution: Fedore , CentOs, Debian
Posts: 121

Original Poster
Rep: Reputation: 15
Hi,

thanks but uname -a returns the hostname entry with I guess processor architecture and some date ..


I need to update php installation there, and it says one of PHP as redhat ES ...
let me try to do that ...

any idea before I start that

thanks
 
Old 08-01-2006, 01:38 AM   #5
vikasumit
Member
 
Registered: Apr 2006
Location: Delhi, India
Distribution: Fedore , CentOs, Debian
Posts: 121

Original Poster
Rep: Reputation: 15
Hi

Thanks Nylex I found "/etc/redhat-release" give major detail about os ..

Thanks a lot
 
Old 08-01-2006, 01:40 AM   #6
Sailesh
LQ Newbie
 
Registered: Jul 2006
Posts: 16

Rep: Reputation: 0
For SuSe,

it will be in etc/Suse-release.

If it is giving some match levels also.. then it shows the no. of service pack installed in it.
 
Old 08-01-2006, 01:47 AM   #7
introuble
Member
 
Registered: Apr 2004
Distribution: Debian -unstable
Posts: 700

Rep: Reputation: 31
Usually just try:

Code:
# cat /etc/*-release /etc/*version
 
Old 08-01-2006, 02:13 AM   #8
vikasumit
Member
 
Registered: Apr 2006
Location: Delhi, India
Distribution: Fedore , CentOs, Debian
Posts: 121

Original Poster
Rep: Reputation: 15
Thats cool , but I still feel Linux should made this information available with in /proc/version or some other system command for the matter ....
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Upcoming new Linux distro : Sectoo Linux LXer Syndicated Linux News 0 07-23-2006 12:54 AM
want to remove linux distro & replace it with a different distro deardoom Linux - Newbie 5 03-20-2006 06:14 PM
which distro is a Gnu/Linux distro masand Linux - General 24 09-14-2005 05:26 PM
easiest way to install another Linux distro alongside existing linux frontier1 Linux - Newbie 10 03-22-2003 05:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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