这个问题似乎与 a specific programming problem, a software algorithm, or software tools primarily used by programmers 无关.如果您认为该问题将成为 another Stack Exchange site 上的主题,您可以发表评论,说明在哪里可以回答问题。
关闭 3 年前。
虽然我从 DVD (RedHat/5.1.x86_64) 安装了 RHEL 5.1,但当我发出命令时,我有点困惑:
cat /etc/redhat-release
我明白了:
Red Hat Enterprise Linux Server release 5.5 (Tikanga)
这是什么意思?这是发布版本还是内核版本?还有其他方法可以确认 RHEL 的真实版本吗?
我问这个问题是因为某些应用程序会依赖于此。
非常感谢。
最佳答案
避免使用/etc/*release* 文件并运行此命令,它更可靠并且提供更多详细信息:
rpm -qia '*release*'
https://stackoverflow.com/questions/4140219/