How to confirm RedHat Enterprise Linux version? [c

2020-05-17 04:17发布

I am a bit confused by the fact that although I installed RHEL 5.1 from DVD (RedHat/5.1.x86_64), when I issue command:

cat /etc/redhat-release

I got:

Red Hat Enterprise Linux Server release 5.5 (Tikanga)

What does this mean? is this to be the release version or kernel version? Is there another way to confirm the real version of RHEL?

I am asking this question because there will be certain applications that would depend on this.

Many thanks in advance.

标签: linux redhat
4条回答
神经病院院长
2楼-- · 2020-05-17 04:43

I assume that you've run yum upgrade. That will in general update you to the newest minor release.

Your main resources for determining the version are /etc/redhat_release and lsb_release -a

查看更多
Animai°情兽
3楼-- · 2020-05-17 04:44

Avoid /etc/*release* files and run this command instead, it is far more reliable and gives more details:

rpm -qia '*release*'
查看更多
祖国的老花朵
4楼-- · 2020-05-17 04:46

That is the release version of RHEL, or at least the release of RHEL from which the package supplying /etc/redhat-release was installed. A file like that is probably the closest you can come; you could also look at /etc/lsb-release.

It is theoretically possible to have packages installed from a mix of versions (e.g. upgrading part of the system to 5.5 while leaving other parts at 5.4), so if you depend on the versions of specific components you will need to check for those individually.

查看更多
Fickle 薄情
5楼-- · 2020-05-17 05:00

That's the RHEL release version.

You can see the kernel version by typing uname -r. It'll be 2.6.something.

查看更多
登录 后发表回答