Main Page | Report Page

 

  Linux Forum Index » Linux Miscellaneous Topics » Find Linux OS Brand and Version

Author Message
Klist Smith
Posted: Thu Mar 03, 2005 10:41 pm
 
Given a Linux harddisk, how can I find out the brand and version of the
Linux OS installed?

Any readme or text file or any command I can use pls?
Thanks.
 
Ohmster
Posted: Thu Mar 03, 2005 11:43 pm
 
Klist Smith <klistsmith@hotmail.com> wrote in news:4227d8df_1
@news.tm.net.my:

Quote:
Given a Linux harddisk, how can I find out the brand and version of the
Linux OS installed?

uname -a

--
~Ohmster
ohmster at newsguy dot com
 
Larry I Smith
Posted: Fri Mar 04, 2005 12:22 am
 
Ohmster wrote:
Quote:
Klist Smith <klistsmith@hotmail.com> wrote in news:4227d8df_1
@news.tm.net.my:

Given a Linux harddisk, how can I find out the brand and version of the
Linux OS installed?

uname -a


I run SuSE Pro 9.2, and 'uname -a' displays this:

Linux linux 2.6.8-24.11-default #1 Fri Jan 14 13:01:26 UTC 2005 i686
i686 i386 GNU/Linux

'SuSE 9.2' is not part of the info displayed by 'uname'.

As far as I know, there's no fool proof way to determine
the distro name and version without examining files in
various directories. For example, if '/etc/SuSEconfig'
exists, then we know it's SuSE, but we still don't know
which version.

Regards,
Larry

--
Anti-spam address, change each 'X' to '.' to reply directly.
 
Larry I Smith
Posted: Fri Mar 04, 2005 12:41 am
 
Larry I Smith wrote:
Quote:
Ohmster wrote:
Klist Smith <klistsmith@hotmail.com> wrote in news:4227d8df_1
@news.tm.net.my:

Given a Linux harddisk, how can I find out the brand and version of the
Linux OS installed?

uname -a


I run SuSE Pro 9.2, and 'uname -a' displays this:

Linux linux 2.6.8-24.11-default #1 Fri Jan 14 13:01:26 UTC 2005 i686
i686 i386 GNU/Linux

'SuSE 9.2' is not part of the info displayed by 'uname'.

As far as I know, there's no fool proof way to determine
the distro name and version without examining files in
various directories. For example, if '/etc/SuSEconfig'
exists, then we know it's SuSE, but we still don't know
which version.

Regards,
Larry



Some distros put a '*-release' or '*-version' file
in /etc. Here are some examples:

/etc/redhat-release
/etc/debian_version
/etc/SuSE-release
/etc/slackware-version
/etc/gentoo-release

You could do 'cat /etc/*-release' or 'cat /etc/*-version'.

You could create a script to be a ittle smarter about it...

Regards,
Larry

--
Anti-spam address, change each 'X' to '.' to reply directly.
 
Michael Heiming
Posted: Fri Mar 04, 2005 1:54 am
 
[ Followup-To -> comp.os.linux.setup ]

In comp.os.linux.setup Klist Smith <klistsmith@hotmail.com>:
Quote:
Given a Linux harddisk, how can I find out the brand and version of the
Linux OS installed?

Any readme or text file or any command I can use pls?
Thanks.

There's no guarantee, the most promising:

cat /etc/*release

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo zvpunry@urvzvat.qr | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 2: solar flares
 
Jose Maria Lopez Hernande
Posted: Fri Mar 04, 2005 8:30 am
 
Klist Smith wrote:
Quote:
Given a Linux harddisk, how can I find out the brand and version of the
Linux OS installed?

Any readme or text file or any command I can use pls?
Thanks.

Try /etc/issue and /etc/isssue.net. That's how the system
defines itself. But have in mind that it can be forged.

Regards.

--

Jose Maria Lopez Hernandez
Director Tecnico de bgSEC
jkerouac@bgsec.com
bgSEC Seguridad y Consultoria de Sistemas Informaticos
http://www.bgsec.com
ESPAŅA

The only people for me are the mad ones -- the ones who are mad to live,
mad to talk, mad to be saved, desirous of everything at the same time,
the ones who never yawn or say a commonplace thing, but burn, burn, burn
like fabulous yellow Roman candles.
-- Jack Kerouac, "On the Road"
 
Jules
Posted: Fri Mar 04, 2005 10:16 am
 
On Fri, 04 Mar 2005 11:41:42 +0800, Klist Smith wrote:

Quote:
Given a Linux harddisk, how can I find out the brand and version of the
Linux OS installed?

If you're booting from the disk, then 'uname -a' should give the kernel
version. Otherwise, check system logs under /var/log or /var/adm (if the
two aren't linked) on the drive for boot messages, as I think the kernel
always announces its version at startup and this should get logged.

(/var/log/syslog probably, although I think Redhat sticks everything into
/var/adm/messages from memory)

Finding the distribution is more tricky, and I don't know of a standard
way. Some distros will send root a welcome email when first installed,
which may still be present - try /root/mbox on the drive. Other than that
it's just a case of poking around on the disk to see what you can find I'm
afraid.

cheers

Jules
 
Christopher Browne
Posted: Fri Mar 04, 2005 11:18 am
 
Martha Stewart called it a Good Thing when Klist Smith <klistsmith@hotmail.com> wrote:
Quote:
Given a Linux harddisk, how can I find out the brand and version of the
Linux OS installed?

uname -a

cbbrowne@wolfe:~> uname -a
Linux wolfe 2.6.7 #3 Sun Jul 11 16:30:11 EDT 2004 i686 GNU/Linux

That gives full information about which version of Linux is in use.
--
select 'cbbrowne' || '@' || 'ntlug.org';
http://linuxdatabases.info/info/rdbms.html
We are in fact well and truly doomed.
-- Jamie Zawinski http://www.jwz.org/gruntle/nscpdorm.html
 
Moe Trin
Posted: Fri Mar 04, 2005 7:56 pm
 
In article <ZxSVd.21020$QQ3.4826@trnddc02>, Larry I Smith wrote:
Quote:
Larry I Smith wrote:

As far as I know, there's no fool proof way to determine
the distro name and version without examining files in
various directories.

True

Quote:
Some distros put a '*-release' or '*-version' file in /etc.

Actually, _most_ distributions to that now. If your distribution is
compliant with the Linux Standard Base (http://www.linuxbase.org/spec/),
it should also have a lsb_release command which can provide some clues.
From the LSB-Core.txt

lsb_release -- print distribution specific information

If your distribution has that command, see the man page that comes
with it.

Quote:
You could create a script to be a ittle smarter about it...

There was a system inventory tool released around 1996 that did this
to identify distribution and release. I've _no_ idea what it was called,
and scanning the ./system/ directories at sunsite doesn't show anything
that rings a bell. The Post-Installation-Checklist mini-howto also fails
to mention it.

Old guy
 
Larry I Smith
Posted: Fri Mar 04, 2005 11:07 pm
 
Moe Trin wrote:
Quote:
In article <ZxSVd.21020$QQ3.4826@trnddc02>, Larry I Smith wrote:
Larry I Smith wrote:

As far as I know, there's no fool proof way to determine
the distro name and version without examining files in
various directories.

True

Some distros put a '*-release' or '*-version' file in /etc.

Actually, _most_ distributions to that now. If your distribution is
compliant with the Linux Standard Base (http://www.linuxbase.org/spec/),
it should also have a lsb_release command which can provide some clues.
From the LSB-Core.txt

lsb_release -- print distribution specific information

If your distribution has that command, see the man page that comes
with it.


No 'lsb_release' found on SuSE Pro v9.2...

Quote:
You could create a script to be a ittle smarter about it...

There was a system inventory tool released around 1996 that did this
to identify distribution and release. I've _no_ idea what it was called,
and scanning the ./system/ directories at sunsite doesn't show anything
that rings a bell. The Post-Installation-Checklist mini-howto also fails
to mention it.

Old guy


Larry

--
Anti-spam address, change each 'X' to '.' to reply directly.
 
Nico Kadel-Garcia
Posted: Sat Mar 05, 2005 12:06 am
 
"Ohmster" <notareal@emailaddress.com> wrote in message
news:Xns960EF25ED262BMyBigKitty@216.77.188.18...
Quote:
Klist Smith <klistsmith@hotmail.com> wrote in news:4227d8df_1
@news.tm.net.my:

Given a Linux harddisk, how can I find out the brand and version of the
Linux OS installed?

uname -a

That's the kernel. You may also want "cat /etc/issue.net" or "cat
/etc/*-release".
 
 
Page 1 of 1    
All times are GMT - 5 Hours
The time now is Fri Apr 18, 2014 10:28 pm