Solved

version redhat linux

Posted on 2014-07-23
6
607 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Backup Solution for AWS

Read about how CloudBerry Backup fully integrates your backups with Amazon S3 and Amazon Glacier to provide military-grade encryption and dramatically cut storage costs on any platform.

 
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

733 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