
我試著了解如何解釋 RHEL 6 上 yum info 顯示的發佈欄位。
# 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.
答案1
這兩個屬性可以總結如下
- 版本 - 這是上游版本,在您的 Java 範例中,來自 Oracle 的 JDK 1.7.0.7
- 發布 - 這是 RPM 包維護者版本rpm 包本身,在 JDK 1.7 範例中為「1jpp.5.el6_3」。假設套件維護者修復了RPM 套件中的錯誤(例如忘記文件),然後他們可以將「Release」欄位增加到較新的版本,例如「1jpp.6.el6_3」(誠然,這是一個複雜的版本號)
我希望這能澄清正在發生的事情。
答案2
Release
RPM 的欄位由創建包的人設置,通常是負責打包包的開發人員。格式完全是任意的,一種格式不一定與另一種格式有任何關係。
也就是說,紅帽將始終將el#
或el#_#
放在其Release
欄位中,指示為其建立軟體包的 RHEL 主要版本和次要版本。