Results 1 to 10 of 13
I am a beginner linux user and have a linux box. It did not have yum or apt or anything useful installed, so I am trying to install one or ...
- 06-18-2008 #1Just Joined!
- Join Date
- Jun 2008
- Posts
- 2
How Can I find What Distro Is Running?
I am a beginner linux user and have a linux box. It did not have yum or apt or anything useful installed, so I am trying to install one or the other to make life easier with dependencies.
However, I'm not sure which distribution is running on the machine and am not sure the easiest way to look it up.
uname just says 'Linux'
uname -r is '2.6.9-023stab044.4-enterprise'
Anyways, I just am not sure how to figure it out.
- 06-18-2008 #2
hi,
you can check it as follows
Code:cat /proc/version
Linux and me it's a love story
- 06-18-2008 #3Linux Guru
- Join Date
- Nov 2007
- Posts
- 1,695
Look for a file with "release" or "version" in the name under /etc - hopefully there is one.
- 06-18-2008 #4
- 06-18-2008 #5
I agree with HROAdmin26. Execute this
Code:cat /etc/*release* cat /etc/*version*
Last edited by devils casper; 06-18-2008 at 05:11 PM.
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 06-18-2008 #6
- 06-18-2008 #7
Oops ! My mistake. I forgot to add command for version. I have edited my last post.
Debian is the only distro which doesn't have release file. It has /etc/debian-version file.It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 06-18-2008 #8
- 06-18-2008 #9
/proc/version tell you about the version of GCC which used for the kernel compilation. It doesn't necessarily tell which distro/version the host is running.
This doesn't mean that I am running Ubuntu 4.1.2.Code:casper@devils-den : $ cat /proc/version Linux version 2.6.20-16-generic (root@terranova) (gcc version 4.1.2 (Ubuntu 4.1.2-0ubuntu4)) #2 SMP Tue Feb 12 05:41:34 UTC 2008
If you mount / partition in LiveCD, there wont be any /proc/version. Its available after system boot up only.Last edited by devils casper; 06-18-2008 at 06:05 PM. Reason: typo
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 06-18-2008 #10Linux Guru
- Join Date
- Nov 2007
- Posts
- 1,695
The more info, the better. Use 'em both to make a best guess, but as Casper mentioned, strictly using /proc/version won't give you the whole picture.
For example, /proc/version on a machine may show "SUSE Linux," but that doesn't tell me specifics. That *plus* /etc/SuSE-release shows me openSuSE 10.3.
Code:cat /proc/version Linux version 2.6.22.5-31-bigsmp (geeko@buildhost) (gcc version 4.2.1 (SUSE Linux)) #1 SMP 2007/09/21 22:29:00 UTC
Code:cat /etc/SuSE-release openSUSE 10.3 (i586) VERSION = 10.3


Reply With Quote
