Solved

version redhat linux

Posted on 2014-07-23
6
605 Views
Last Modified: 2014-07-23
Why does /etc/redhat-release , uname --version and rpm -qa '*release*' all give different results
0
Comment
Question by:Asle Kibsgaard
  • 2
  • 2
  • 2
6 Comments
 
LVL 21

Expert Comment

by:Mazdajai
ID: 40214570
/etc/redhat-release should match the package version of redhat-release-server-*.rpm

uname provides GNU or kernel version and has no relation to redhat version.
0
 
LVL 34

Expert Comment

by:Seth Simmons
ID: 40214800
uname --version provides the version of the uname package specifically

redhat-release* package (part of your rpm query) should match the version you see in /etc/redhat-release
0
 

Author Comment

by:Asle Kibsgaard
ID: 40214850
Thanks Mazdajai and Seth!

This is the output from the different commands:
/etc/redhat-release : 5.8
uname --Version: 5.97
rpm -qa '*release*:5.8.0.3

But it looks like you disagree on the uname command , what is correct , any other references since the man page does not explain this very well from my point of view.
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
LVL 21

Assisted Solution

by:Mazdajai
Mazdajai earned 250 total points
ID: 40214907
On redhat perspective, if you need OS verions, the most accurate place is /etc/redhat-release, generated from the redhat-release-server package. (yum info redhat-release-server)

There isn't much documentation for uname. It is part of the gnu coreutils that provide kernel, hostname or processor architecture information that has been around for decade.
0
 
LVL 34

Accepted Solution

by:
Seth Simmons earned 250 total points
ID: 40215099
it's not a disagreement
mazdajai explained what it does; the command you specified shows only the version of the package

your RHEL 5.8 distribution has uname version 5.97
many packages have newer versions with new major releases of the operating system
i have a 6.5 system with uname version 8.4

as was mentioned, there isn't much to uname - only a few switches provided kernel/architecture information
0
 

Author Closing Comment

by:Asle Kibsgaard
ID: 40215212
Thanks , I say both solutions equally good.

Thanks :-)
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Ubuntu not booting - How get past GRUB? 3 57
Choosing CentOS 16 108
How to update  and reset admin password for Linux 5 65
I NEED A "BARE" LINUX ... 9 56
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question