Solved

version redhat linux

Posted on 2014-07-23
6
593 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
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Cant protect clients on DPM 2012 R2 2 59
Codiing Non-Existent Links 4 65
How can i set a Environment Variable in my Unix script ? 3 46
nagios alerts 3 32
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
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.

932 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

15 Experts available now in Live!

Get 1:1 Help Now