LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices



Reply
 
Search this Thread
Old 06-08-2005, 02:28 PM   #1
Tajci
LQ Newbie
 
Registered: Jun 2005
Posts: 7

Rep: Reputation: 0
Find out distribution + version (NOT: kernel version!)


Hi,

I know , that we have RHEL installed. I would like the system to tell me this.
Is there a command for that ?

I know "uname -a", which gives me the kernel version, but there must be some way to let the system tell me "Red Hat 2.1" or alike (and NOT: "Linux ... Kernel 2.4").

Can somebody help me ?

Thanks in advance,

Tajci
 
Old 06-08-2005, 03:15 PM   #2
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 927

Rep: Reputation: 30
If the system knows, you can get it from uname -a or just uname -o.
 
Old 06-08-2005, 03:21 PM   #3
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Code:
cat /etc/redhat-release
 
Old 06-08-2005, 03:21 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
Redhat usually have a config file in /etc/ with the release name. I think it is called redhat-release or something like that.
 
Old 06-08-2005, 03:56 PM   #5
Tajci
LQ Newbie
 
Registered: Jun 2005
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks, folks!

The hint with /etc/redhat-release helped, allthough I am disappointed, that I have to look in a text file to get this.

rose_bud:
System seems not to know,
uname doesn't report what I need.


Tajci
 
Old 06-08-2005, 04:17 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
The problem with just using a release name is that it doesn't really tell you much. At the end of the day, what determines a distribution version?
 
  


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
Regarding distribution + kernel version + gcc version + glib version. JCipriani Linux - General 8 04-19-2008 03:54 PM
Find my kernel version lacitpo Linux - Newbie 1 07-01-2005 06:53 PM
find kernel version... mahamkali Linux - General 1 12-05-2003 11:02 AM
Xfree prob radeon.o kernel module version is 1.1.1 but version 1.5.0 or newer needed. jimdaworm Slackware 0 10-01-2003 07:27 PM
How can I tell which version of iptables is in a given kernel distribution? cestor Linux - General 4 05-27-2002 05:24 PM


All times are GMT -5. The time now is 09:07 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration