“-45.el7”在“httpd 2.4.6-45.el7”中是什么意思?

use*_*726 6 rhel version

我已经安装httpd在 CentOS 7 上,但安装的版本是2.4.6-45.el7. 这个页面 说最新版本httpd是2.4.25。

我想知道是否2.4.6-45.el7相当于2.4.25. 什么-45.el7意思?有没有关于这个的文件?

Jul*_*ier 12

那是 2.4.6 版本,之后的部分-是包发布版本。

el(否e1如问题所述) 表示Enterprise Linux,以下是其对应的版本 ( 7)。此版本在 RedHat 和相关发行版(包括 CentOS)中保持一致。

由于对另一个包的更改而必须重新构建时,包版本会发生变化,这就是为什么即使实际源包仍然相同,它也会增加的原因。

  • 除非您有 ** 非常** 好的理由来获取特定版本,否则使用系统包管理器中未包含的任何内容很少是一个好主意,因为您将永远负责所有相关的更新和兼容性问题。 (5认同)

小智 5

正如您在Red Hat 开放文档中看到的那样,后面的字符-Release版本

[root@host ~]# yum info httpd
Available Packages
Name        : httpd
Arch        : x86_64
Version     : 2.4.6
Release     : 45.el7.centos
Size        : 2.7 M
Repo        : base/7/x86_64
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.
Run Code Online (Sandbox Code Playgroud)

查看RPM 命名约定,我们可以找到与示例包相同的结构:

name-version-release.architecture.rpm
Run Code Online (Sandbox Code Playgroud)
  • release 是这个版本的软件被打包的次数。

这意味着具有该名称的包具有2.4.6-45.el7上游软件版本2.4.6并已重新打包(用于修复或改进),创建45提供此包的存储库的“内部版本”。仍在查看该Release字段,el7表示我们使用的 Enterprise Linux 的版本,其次是.centos(发行版)。-字符用于将上游版本与供应商特定信息分开,而.用于表示特定于版本或发布的信息。

然而,随着基于 RPM 的发行版的发展,更多的东西被添加到包名称中,我们可以找到一些名称,例如kexec-tools-1.102pre-126.el5_7.7.x86_64在那里你会发现

  • namekexec-tools-1.102pre-126。打包者使用上游版本作为“稳定/基础”来开发和应用修复软件。正如 Christian Long 在评论中所注意到的,这部分进一步分为 version( 1.102pre) 和release( -126)
  • EL version: 操作系统版本 - el5_7. 由于点被用作信息的分隔符,因此下划线表示 Enterprise Linux 5.7 版。
  • Package Release:同上:.7这个包的“重新打包”。
  • Architecture: 包架构 - .x86_64- 当您需要i386在基于 64 位的发行版上安装其他兼容架构的软件(如包)时很有用。

在某些软件包中,您甚至可以.20161112git在软件包名称中找到,显示从那天起在上游存储库中向后移植了哪些特定修复程序。例子:libpcap-1.4.0-4.20130826git2dbcaa1.el6.x86_64

您可以查询更改日志以查看与当前软件包版本相比已改进/修复的内容、关闭的 Red Hat 问题和修补的 CVE:

[root@host ~]# rpm -q --changelog httpd
* Thu Nov 03 2016 CentOS Sources <bugs@centos.org> - 2.4.6-45.el7.centos
- Remove index.html, add centos-noindex.tar.gz
- change vstring
- change symlink for poweredby.png
- update welcome.conf with proper aliases

* Wed Aug 03 2016 Luboš Uhliarik <luhliari@redhat.com> - 2.4.6-45
- RFE: run mod_rewrite external mapping program as non-root (#1316900)

* Tue Jul 12 2016 Joe Orton <jorton@redhat.com> - 2.4.6-44
- add security fix for CVE-2016-5387

* Tue Jul 05 2016 Joe Orton <jorton@redhat.com> - 2.4.6-43
- add 451 (Unavailable For Legal Reasons) response status-code (#1343582)

* Fri Jun 17 2016 Joe Orton <jorton@redhat.com> - 2.4.6-42
- mod_cache: treat cache as valid with changed Expires in 304 (#1331341)

* Wed Feb 24 2016 Jan Kaluza <jkaluza@redhat.com> - 2.4.6-41
- mod_cache: merge r->err_headers_out into r->headers when the response
  is cached for the first time (#1264989)
- mod_ssl: Do not send SSL warning when SNI hostname is not found as per
  RFC 6066 (#1298148)
- mod_proxy_fcgi: Ignore body data from backend for 304 responses (#1263038)
- fix apache user creation when apache group already exists (#1299889)
- fix apache user creation when USERGROUPS_ENAB is set to 'no' (#1288757)
- mod_proxy: fix slow response time for reponses with error status code
  when using ProxyErrorOverride (#1283653)
- mod_ldap: Respect LDAPConnectionPoolTTL for authn connections (#1300149)
- mod_ssl: use "localhost" in the dummy SSL cert for long FQDNs (#1240495)
- rotatelogs: improve support for localtime (#1244545)
- ab: fix read failure when targeting SSL server (#1255331)
- mod_log_debug: fix LogMessage example in documentation (#1279465)
- mod_authz_dbd, mod_authn_dbd, mod_session_dbd, mod_rewrite: Fix lifetime
  of DB lookup entries independently of the selected DB engine (#1287844)
- mod_ssl: fix hardware crypto support with custom DH parms (#1291865)
- mod_proxy_fcgi: fix SCRIPT_FILENAME when a balancer is used (#1302797)
---remaining output suppressed---
Run Code Online (Sandbox Code Playgroud)