LinuxQuestions.org
Visit Jeremy's Blog.
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 03-02-2006, 08:29 AM   #1
pxumsgdxpcvjm
Member
 
Registered: Aug 2005
Posts: 235

Rep: Reputation: 30
How to know the distro of linux installed


hi

I have linux installed on system and uname -a gives following o/p
Linux localhost.localdomain 2.6.9-5.ELsmp #1 SMP Wed Jan 5 19:30:39 EST 2005 i686 i686 i386 GNU/Linux

now how do i know which linux distro is installed i mean red hat or dedian or what else?

Thanks

NB
 
Old 03-02-2006, 11:27 AM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
there's really no precise/effective way to do this with shell commands... but you can get a good idea by looking around the install yourself... your best bet is to ask the person who did the install...

Last edited by win32sux; 03-02-2006 at 12:19 PM.
 
Old 03-02-2006, 11:57 AM   #3
Houseoffun
LQ Newbie
 
Registered: Dec 2005
Location: England
Distribution: Mandriva 2007, Ubuntu 6.06 LTS, Gentoo 2006, Fedora Core 6, PCLinux, SuSE 10 and 10.2
Posts: 22

Rep: Reputation: 15
TO check debian or Redhat, try to install an rpm. Debian doesn't use these!
 
Old 03-02-2006, 12:04 PM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by Houseoffun
TO check debian or Redhat, try to install an rpm. Debian doesn't use these!
ummm, yes it does...

RPM is the LSB standard package format, so any distro which wants to be LSB-compliant must include the RPM system...
 
Old 03-02-2006, 12:04 PM   #5
Jaqui
Member
 
Registered: Jan 2006
Location: Vancouver BC
Distribution: LFS, SLak, Gentoo, Debian
Posts: 291

Rep: Reputation: 36
OR start the xserver, since every distro has their own splash screen that should tell you which distro is installed.

also, during he boot sequence, unless it's hidden [ graphic boot ], there is often a distro logo being displayed.
the graphic style boot always has some distro centric image being displayed.
debian, lfs, gentoo being three that don't have a graphic boot with logo option.
 
Old 03-02-2006, 04:53 PM   #6
Houseoffun
LQ Newbie
 
Registered: Dec 2005
Location: England
Distribution: Mandriva 2007, Ubuntu 6.06 LTS, Gentoo 2006, Fedora Core 6, PCLinux, SuSE 10 and 10.2
Posts: 22

Rep: Reputation: 15
I try to stay clear of Debian for the moment becuase I find it quite different to things like Fedora, SuSE or Mandriva. I tried Ubuntu, Kubuntu and Knoppix and I found that RPMs are a pain.
 
Old 03-02-2006, 04:53 PM   #7
wipe
Member
 
Registered: Jun 2004
Location: High Green
Distribution: Fedora Core 4
Posts: 180

Rep: Reputation: 30
Quote:
Originally Posted by pxumsgdxpcvjm
uname -a gives following o/p
Linux localhost.localdomain 2.6.9-5.ELsmp #1 SMP Wed Jan 5 19:30:39 EST 2005 i686 i686 i386 GNU/Linux
Doesn't the EL in 2.6.9-5.ELsmp mean Enterprise Linux as in Red Hat Enterprise Linux?

Some (many?) distros have a file in /etc that contains distro version information. On Fedora it's /etc/fedora-release - I'd imagine RHEL has redhat-release or something similar.

Simon

EDIT: Oh, I forgot, distros that are based on (= forked from) some other distro can have a kernel with the same name. And they might even have /etc/redhat-release (or whatever). Even though the filesystem looks like a Red Hat, it might be a White Box Linux, for example.

Last edited by wipe; 03-02-2006 at 05:14 PM.
 
Old 03-02-2006, 05:24 PM   #8
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
yes, i quick google for that kernel name and build date shows it's likely a Red Hat Enterprise Linux 4 distro... so the /etc/redhat-release file should probably look like:
Code:
Red Hat Enterprise Linux ES release 4 (Nahant)
having said that, it's still all speculation - which might be enough in this case... to know for sure you'd have to do something like checksum all the files and compare them with the files in the RPMs for RHEL4...
 
Old 03-02-2006, 10:59 PM   #9
epoo
Member
 
Registered: Aug 2003
Distribution: slackware 11, ubuntu 7.04
Posts: 165

Rep: Reputation: 30
try doing a ls of /etc... i know both rh and slackware have a file specific to each - in slackware i believe its /etc/slackware-version.
 
Old 03-02-2006, 11:18 PM   #10
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,434

Rep: Reputation: 2790Reputation: 2790Reputation: 2790Reputation: 2790Reputation: 2790Reputation: 2790Reputation: 2790Reputation: 2790Reputation: 2790Reputation: 2790Reputation: 2790
RH example:

cat /etc/issue
Fedora Core release 3 (Heidelberg)
Kernel \r on an \m
 
Old 03-02-2006, 11:23 PM   #11
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
these will usually tell you:
Code:
cat /etc/*-version
cat /etc/*-release
cat /etc/issue
 
  


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
How old were you when you installed your first Linux distro? Grim Reaper General 378 12-28-2010 10:06 AM
Linux distro with PPTP client pre-installed? valnar Linux - Distributions 5 02-07-2006 12:22 PM
Linux Programs and Files: accessible by any installed distro? hanzj Linux - Newbie 10 04-19-2005 06:46 AM
Is it possible to boot one laptop from another with Linux distro installed? bigrobot Linux - Laptop and Netbook 2 12-13-2004 07:57 AM
First Linux Distro Installed Mannyakatheman General 4 04-10-2004 11:11 PM

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

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