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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-02-2006, 08:29 AM
|
#1
|
Member
Registered: Aug 2005
Posts: 235
Rep:
|
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
|
|
|
03-02-2006, 11:27 AM
|
#2
|
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870
|
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.
|
|
|
03-02-2006, 11:57 AM
|
#3
|
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:
|
TO check debian or Redhat, try to install an rpm. Debian doesn't use these!
|
|
|
03-02-2006, 12:04 PM
|
#4
|
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870
|
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...
|
|
|
03-02-2006, 12:04 PM
|
#5
|
Member
Registered: Jan 2006
Location: Vancouver BC
Distribution: LFS, SLak, Gentoo, Debian
Posts: 291
Rep:
|
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.
|
|
|
03-02-2006, 04:53 PM
|
#6
|
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:
|
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.
|
|
|
03-02-2006, 04:53 PM
|
#7
|
Member
Registered: Jun 2004
Location: High Green
Distribution: Fedora Core 4
Posts: 180
Rep:
|
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.
|
|
|
03-02-2006, 05:24 PM
|
#8
|
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870
|
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... 
|
|
|
03-02-2006, 10:59 PM
|
#9
|
Member
Registered: Aug 2003
Distribution: slackware 11, ubuntu 7.04
Posts: 165
Rep:
|
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.
|
|
|
03-02-2006, 11:18 PM
|
#10
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,434
|
RH example:
cat /etc/issue
Fedora Core release 3 (Heidelberg)
Kernel \r on an \m
|
|
|
03-02-2006, 11:23 PM
|
#11
|
Senior Member
Registered: Aug 2005
Posts: 1,755
Rep:
|
these will usually tell you:
Code:
cat /etc/*-version
cat /etc/*-release
cat /etc/issue
|
|
|
All times are GMT -5. The time now is 10:13 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|