在看yum info输出的时候理解RHEL释放string?

我想了解如何解释由RHEL 6上的yum info显示的发布字段。例如,下面的命令为Relase提供了大不相同的值,发布引用的是什么,RHEL服务器版本,包版本?

# yum info java-1.7.0-openjdk.x86_64 Loaded plugins: product-id, rhnplugin, security, subscription-manager Updating certificate-based repositories. Unable to read consumer identity Available Packages Name : java-1.7.0-openjdk Arch : x86_64 Epoch : 1 Version : 1.7.0.5 Release : 2.2.1.el6_3.3 Size : 25 M Repo : rhel-x86_64-server-6 Summary : OpenJDK Runtime Environment License : ASL 1.1 and ASL 2.0 and GPL+ and GPLv2 and GPLv2 with exceptions Description : The OpenJDK runtime environment. # yum info java-1.7.0-oracle.x86_64 Loaded plugins: product-id, rhnplugin, security, subscription-manager Updating certificate-based repositories. Unable to read consumer identity Available Packages Name : java-1.7.0-oracle Arch : x86_64 Epoch : 1 Version : 1.7.0.7 Release : 1jpp.5.el6_3 Size : 38 M Repo : rhel-x86_64-server-supplementary-6 Summary : Oracle Java Runtime Environment License : Oracle Binary Code License Agreement for the Java SE Platform Pr Description : The Java Runtime Environment (JRE) contains the software and tools : that users need to run applets and applications written using the Java : programming language. # yum info httpd Loaded plugins: product-id, rhnplugin, security, subscription-manager Updating certificate-based repositories. Unable to read consumer identity Installed Packages Name : httpd Arch : x86_64 Version : 2.2.15 Release : 15.el6_2.1 Size : 2.9 M Repo : installed From repo : rhel-x86_64-server-6 Summary : Apache HTTP Server URL : http://httpd.apache.org/ License : ASL 2.0 Description : The Apache HTTP Server is a powerful, efficient, and extensible : web server. 

这两个属性可以总结如下

  • 版本 – 这是上游版本,在您的Java示例中,来自Oracle的JDK 1.7.0.7
  • 发布 – 这是rpm包自身的RPM包维护者版本,在JDK 1.7的例子中是“1jpp.5.el6_3”。 假设软件包维护人员修复了RPM包装中的一个错误(例如被遗忘的文档),那么他们可以将“发布”字段递增到更新的版本,例如“1jpp.6.el6_3”(不可否认,这是一个复杂的版本号)

我希望澄清正在发生的事情。

RPM的Release字段由创build包的人设置,通常是开发人员将其打包。 格式完全是任意的,不一定与另一个有任何关系。

也就是说,红帽总是会在他们的Release域中放置el#或者el#_# ,这表明这个软件包的RHEL的主版本和次版本。