Redhat
在查看 yum 資訊輸出時理解 RHEL 發布字元串?
我試圖了解如何解釋 yum info 在 RHEL 6 上顯示的發布欄位。例如,下面的命令為 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”(誠然,這是一個複雜的發布號)
我希望澄清發生了什麼。