Solved

version redhat linux

Posted on 2014-07-23
6
611 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 35

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
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 
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 35

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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

If, like me, you have a lot of Dell servers in the estate you manage this article should save you a little time. When attempting to login to iDrac on any server I would be presented with two errors. The first reads "Do you want to run this applicati…
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 find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

687 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