[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


How can i find out what update i am running on redhat and SLES

Posted on 2007-10-04
Medium Priority
Last Modified: 2013-12-16
    Can some one please let me know ,How can i find out what update i am running the /etc/issue or /etc/release  has not been updated .Is there a way that i can find out that information .Thanks in advance for your help.
Question by:kaka123
LVL 14

Expert Comment

ID: 20015790
The /etc/redhat-release file tells you what update level you're at.  It is updated by the redhat-release rpm.  You could also do "rpm -qa |grep redhat-release" to see what version you are on.  If that file hasn't been updated then you're not on that release.  Of course this is just the update level, there could be many different minor versions of packages underneath that update.

Author Comment

ID: 20016495
The command  root]# rpm -qa |grep redhat-release
          I still can't tell what update i am on i know that there are update have been applied to these machines but i just can't  tell.....
LVL 48

Expert Comment

ID: 20017649
What does

cat /etc/redhat-release

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  


Author Comment

ID: 20017862
root]# cat /etc/redhat-release
Red Hat Linux Advanced Server release 2.1AS (Pensacola)
LVL 48

Accepted Solution

Tintin earned 2000 total points
ID: 20018294
You're running update 6.  Unfortunately with RHAS 2.1, Redhat didn't update the /etc/redhat-release file with the update version as they do for RHAS >=3.0
LVL 34

Expert Comment

ID: 20018923
SUSE --> cat /etc/SuSE-release

RHEL --> cat /etc/redhat-release

As TinTin pointed out, in RHEL v2.1, they has not established their "Update" levels, so you only get an "Update" value for RHEL v3 and later.

SUSE's output looks like this:

SUSE LINUX 10.0 (i586)
VERSION = 10.0
LVL 48

Expert Comment

ID: 20018978
For RHAS 2.1 the update level can be determined from the RPM level.


The 21 on the end of the RPM name is the RPM revision.  Revision >=20 equates to update 6.

Author Comment

ID: 20023626
is there table that i can refer to as i have other version on redhat that i need to check .

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

The purpose of this article is to demonstrate how we can use conditional statements using Python.
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
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.:
Suggested Courses
Course of the Month20 days, 3 hours left to enroll

872 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