Solved

version redhat linux

Posted on 2014-07-23
6
589 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
Comment Utility
/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
Comment Utility
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
Comment Utility
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
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 21

Assisted Solution

by:Mazdajai
Mazdajai earned 250 total points
Comment Utility
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
Comment Utility
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
Comment Utility
Thanks , I say both solutions equally good.

Thanks :-)
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
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…
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.:

762 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now