

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# Extra Packages for Enterprise Linux (EPEL)
<a name="epel"></a>

**警告**  
 AL2 `epel` Extra 已啟用第三方EPEL7儲存庫。自 2024-06-30 起，*不再維護*第三方EPEL7儲存庫。  
 這個第三方儲存庫*未來不會有更新*。這表示 *EPEL* 儲存庫中的套件*不會有安全性修正*。  
 本節將涵蓋 AL2023 中的套件選項EPEL。

 Extra Packages for Enterprise Linux (EPEL) 是 Fedora 社群的專案，目的是為企業級 Linux 作業系統建立大量套件。該項目主要生產 RHEL 和 CentOS 套件。AL2 與 CentOS 7 高度相容。因此，許多 EPEL7 套件都在 AL2 上運作。

 沒有與 AL2023 相容的二進位EPEL版本。不過，想要在 AL2023 中使用其EPEL7套件的客戶有幾個選項。有些EPEL套件在 AL2023 中具有替代方案，而其他套件則作為 的一部分提供[Amazon Linux 的補充套件](spal.md)。

**警告**  
 僅新增旨在與 AL2023 搭配使用的儲存庫。  
 雖然專為其他 分佈設計的儲存庫可能目前有效，但無法保證他們會繼續使用 AL2023 中的任何套件更新，或並非設計用於 AL2023 的儲存庫。

 此頁面提供客戶在 AL2 上使用的EPEL7套件及其 AL2023 複本的相關資訊。

 對於其他套件，客戶可能可以使用適用於 Amazon Linux (SPAL) 的補充套件。SPAL 提供數千個專為 Amazon Linux 2023 建置的EPEL9套件，但 AWSSupport Plans 不涵蓋這些套件。這表示不會追蹤 SPAL 套件的 CVEs，而且只有在上游可用時才會提供修補程式。

**重要**  
 使用前[Amazon Linux 的補充套件](spal.md)，請參閱 的文件。

**Topics**
+ [`axel` - HTTP/FTP 用戶端](#axel)
+ [`brotli` 和 `libbrotli` - 壓縮](#brotli)
+ [`collectd` - 統計資料收集常駐程式](#collectd)
+ [`cpulimit` - CPU 用量限制器](#cpulimit)
+ [`exim` - 郵件傳輸代理程式](#exim)
+ [`fuse3` - 使用者空間中的檔案系統 (FUSE) v3](#fuse3)
+ [`ganglia` - 分散式監控系統](#ganglia)
+ [`git-lfs` - 版本使用 Git 控制大型檔案](#git-lfs)
+ [`haveged` - 使用HAVEGE演算法的熵來源](#haveged)
+ [`inotify-tools` - inotify 命令列工具](#inotify-tools)
+ [`iperf` - TCP/UDP 效能基準](#iperf)
+ [`jemalloc` - 替代`malloc`實作](#jemalloc)
+ [`libbsd` - BSD 相容函數程式庫](#libbsd)
+ [`libserf` - HTTP 用戶端程式庫](#libserf)
+ [`libzstd` - zstd 壓縮程式庫](#libzstd)
+ [`lighttpd` Web 伺服器](#lighttpd)
+ [`lshell` - 受限制的 shell](#lshell)
+ [`monit` - 程序、檔案、目錄和裝置監控](#monit)
+ [`nodejs`](#nodejs)
+ [`perl-Config-General`](#perl-Config-General)
+ [`python2-lockfile` - 檔案鎖定](#python2-lockfile)
+ [`python2-rsa` - 純 Python RSA](#python2-rsa)
+ [`python2-simplejson` - Python 2 的 JSON 常式](#python2-simplejson)
+ [`rkhunter` - Rootkit Hunter](#rkhunter)
+ [`rssh` - 與 OpenSSH 搭配使用的受限制 Shell](#rssh)
+ [`sscg` - 自我簽署的 SSL 憑證產生器](#sscg)
+ [`stress` - 壓力測試](#stress)
+ [`stress-ng` - 壓力測試](#stress-ng)
+ [`tmpwatch` - 根據上次存取時間移除檔案](#tmpwatch)
+ [`xmlstarlet` - 命令列 XML 公用程式](#xmlstarlet)

## `axel` - HTTP/FTP 用戶端
<a name="axel"></a>

 `axel` 套件位於 中EPEL7，從未做為 Amazon Linux 的一部分運送。AL2023 中可用的替代方案為 `curl`和 `wget`。

**警告**  
 `axel` 使用*未加密*http連線來探索檔案鏡像`-S`的選項。

 強烈建議將 的任何使用遷移`axel`到 `curl`或 `wget`。

## `brotli` 和 `libbrotli` - 壓縮
<a name="brotli"></a>

 `brotli` 和 `libbrotli`套件位於 中EPEL7，而只有 `brotli`套件可在 AL2 核心中使用。

 `brotli` 和 `libbrotli`套件都包含在 AL2023 中。

 `brotli` 套件可以使用下列命令安裝在 AL2023 上：

```
[ec2-user ~]$ sudo dnf install brotli
```

 `libbrotli` 套件可以使用下列命令安裝在 AL2023 上：

```
[ec2-user ~]$ sudo dnf install libbrotli
```

## `collectd` - 統計資料收集常駐程式
<a name="collectd"></a>

 `collect` 套件位於 EPEL7，也可在 `collectd`和 AL2 Extras `collectd-python3` 中使用。

 `collectd` 套件包含在 AL2023 中，可透過執行下列命令來安裝：

```
[ec2-user ~]$ sudo dnf install collectd
```

## `cpulimit` - CPU 用量限制器
<a name="cpulimit"></a>

 在 Amazon Linux 2023 中， `systemd`提供限制程序或一組程序 CPU 用量的功能。此功能也可輕鬆用於任何`systemd`服務。

 提供強大的資源控制設施`systemd`，可用於確保任何任務或任務群組在可以取用的資源中受到限制。如需詳細資訊，請參閱上游 [systemd.resource-control](https://www.freedesktop.org/software/systemd/man/latest/systemd.resource-control.html) 文件，以及 [使用 限制 AL2023 中的程序資源使用量 systemd](resource-limiting-systemd.md)。

## `exim` - 郵件傳輸代理程式
<a name="exim"></a>

 `exim` 套件位於 ，EPEL7先前可在 AL1 中使用。Amazon Linux 2023 同時提供 `postfix`和 `sendmail` Mail Transfer Agents (MTAs)。

## `fuse3` - 使用者空間中的檔案系統 (FUSE) v3
<a name="fuse3"></a>

 `fuse3` 套件 （包括 `fuse3-libs`和 `fuse3-devel`) 位於 中EPEL7。這些套件是 AL2023 的一部分，每個套件都可以透過執行相關的下列命令來安裝：

```
[ec2-user ~]$ sudo dnf install fuse3
```

```
[ec2-user ~]$ sudo dnf install fuse3-libs
```

```
[ec2-user ~]$ sudo dnf install fuse3-devel
```

## `ganglia` - 分散式監控系統
<a name="ganglia"></a>

 `ganglia` 套件位於 中EPEL7，先前可在 AL1 中使用。它未與 AL2 一起運送。

 上游專案有一段時間沒有活動，其中未處理一些開啟CVEs。雖然上游專案中最近有活動，但計劃不將 `ganglia`新增至 AL2023。

## `git-lfs` - 版本使用 Git 控制大型檔案
<a name="git-lfs"></a>

 `git-lfs` 套件位於 中EPEL7。在 Amazon Linux 2023 中，`git-lfs`套件包含在核心儲存庫中。在 AL2023 上執行下列命令`git-lfs`即可安裝 ：

```
[ec2-user ~]$ sudo dnf install git-lfs
```

## `haveged` - 使用HAVEGE演算法的熵來源
<a name="haveged"></a>

 `haveged` 套件位於 中EPEL7。Amazon Linux 2023 已預先設定熵來源，不需要使用 `haveged`。

## `inotify-tools` - inotify 命令列工具
<a name="inotify-tools"></a>

 `inotify-tools` 套件位於 中EPEL7，並包含在 AL2023 中。

**注意**  
 在 AL2023 中， `systemd`支援路徑型啟用，可用於對事件採取動作，例如當路徑存在或變更時。  
 許多用於 `inotify-tools` 的 現在可以使用`systemd`路徑啟用，以更可靠的方式完成。如需詳細資訊，請參閱 [systemd.path](https://www.freedesktop.org/software/systemd/man/latest/systemd.path.html)。

 `inotify-tools` 套件包含在 AL2023 中，可透過執行下列命令來安裝：

```
[ec2-user ~]$ sudo dnf install inotify-tools
```

## `iperf` - TCP/UDP 效能基準
<a name="iperf"></a>

 第 2 `iperf`版套件位於 中EPEL7，也可用於 `testing` AL2 Extra。 也可用於 AL1 

**注意**  
 `iperf3` 套件也可使用，提供 第 3 版`iperf`。

 `iperf` 套件包含在 AL2023 中，可透過執行下列命令來安裝：

```
[ec2-user ~]$ sudo dnf install iperf
```

## `jemalloc` - 替代`malloc`實作
<a name="jemalloc"></a>

 `jemalloc` 套件位於 EPEL7，並可在 `lamp-mariadb10.2-php7.2`和 AL2 Extras `mariadb10.5` 中使用。

 `jemalloc` 套件包含在 AL2023 中，可透過執行下列命令來安裝：

```
[ec2-user ~]$ sudo dnf install jemalloc
```

## `libbsd` - BSD 相容函數程式庫
<a name="libbsd"></a>

 `libbsd` 套件位於 中EPEL7，也可用於 `testing` AL2 Extra。

 `libbsd` 套件包含在 AL2023 中，可透過執行下列命令來安裝：

```
[ec2-user ~]$ sudo dnf install libbsd
```

 您可以執行下列命令來`libbsd`安裝 的開發檔案。

```
[ec2-user ~]$ sudo dnf install libbsd-devel
```

## `libserf` - HTTP 用戶端程式庫
<a name="libserf"></a>

 `libserf` 套件位於 中EPEL7。`libserf` 套件在 Amazon Linux 2023 中提供。您可以執行下列命令來安裝：

```
[ec2-user ~]$ sudo dnf install libserf
```

## `libzstd` - zstd 壓縮程式庫
<a name="libzstd"></a>

 `libzstd` 套件位於 AL2 核心，以及 中EPEL7。`libzstd` 套件也是 AL2023 的一部分。

```
[ec2-user ~]$ sudo dnf install libzstd
```

## `lighttpd` Web 伺服器
<a name="lighttpd"></a>

 `lighttpd` 套件位於 中EPEL7，先前可在 AL1 中使用。Amazon Linux 2023 同時提供 Apache `httpd`和 `nginx` Web 伺服器。

## `lshell` - 受限制的 shell
<a name="lshell"></a>

 `lshell` 套件從未做為 Amazon Linux 的一部分運送。它可在 中使用EPEL6。[的 Fedora 封裝儲存庫`lshell`](https://src.fedoraproject.org/rpms/lshell)涵蓋[了未封裝於 ](https://src.fedoraproject.org/rpms/lshell/c/cb122f0a16c9f1d5c2af8582b740a3f62587a951?branch=rawhide)EPEL7或 Fedora 30 的原因。它也[已從 Debian 移除](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=862302)。

 上游`lshell`專案[不再主動維護](https://github.com/ghantoos/lshell/issues/209)，並包含[已知未修補](https://github.com/ghantoos/lshell/issues/188)*的關鍵 CVEs*：[CVE-2016-6902](https://nvd.nist.gov/vuln/detail/CVE-2016-6902) 和 [CVE-2016-6903](https://nvd.nist.gov/vuln/detail/CVE-2016-6903)。

 Debian 錯誤中建議的替代方案[http://www.pizzashack.org/rssh/](http://www.pizzashack.org/rssh/)，在上游也未維護，作者將無法修正的安全問題視為原因。

 基於這些原因，未計劃`lshell`將 新增至 AL2023。

## `monit` - 程序、檔案、目錄和裝置監控
<a name="monit"></a>

 在 Amazon Linux 2023 中， `systemd`提供監控、啟動、停止和重新啟動服務的各種功能。這包括速率限制重新啟動、在重新啟動嘗試之間等待，以及在失敗時啟動另一個服務。如需詳細資訊，請參閱 [systemd.service 文件。](https://www.freedesktop.org/software/systemd/man/latest/systemd.service.html)

 在 AL2023 中， `systemd`也支援路徑型啟用，可用於對事件採取動作，例如當路徑存在或變更時。如需詳細資訊，請參閱 [systemd.path。](https://www.freedesktop.org/software/systemd/man/latest/systemd.path.html)

 `systemd` 單位有常見的組態選項，允許指定相依性、條件和動作，以因應成功或失敗。如需詳細資訊，請參閱 [systemd.unit 文件。](https://www.freedesktop.org/software/systemd/man/latest/systemd.unit.html)

 提供強大的資源控制設施`systemd`，可用於確保任何監控任務不會使用過多的 CPU 或記憶體。如需詳細資訊，請參閱 [systemd.resource-control](https://www.freedesktop.org/software/systemd/man/latest/systemd.resource-control.html)。

## `nodejs`
<a name="nodejs"></a>

 `nodejs` 版本 16 套件位於 中EPEL7，現在`nodejs`已包含在 AL2023 中。在寫入時，`nodejs`版本 18 和 20 皆可在 AL2023 中使用。您可以使用下列命令在 `nodejs` AL2023 上安裝 18：

```
[ec2-user ~]$ sudo dnf install nodejs
```

 您可以使用下列命令在 `nodejs` AL2023 上安裝 20：

```
[ec2-user ~]$ sudo dnf install nodejs20
```

## `perl-Config-General`
<a name="perl-Config-General"></a>

 `perl-Config-General` 套件位於 中EPEL7，現在已包含在 AL2023 中。您可以使用下列命令在 AL2023 中安裝`perl-Config-General`套件：

```
[ec2-user ~]$ sudo dnf install perl-Config-General
```

 也可以要求 安裝提供特定 Perl 模組的套件來DNF安裝 Perl 模組。透過此方法，您可以使用更熟悉的 Perl 模組名稱，而不是作業系統套件名稱。

```
[ec2-user ~]$ sudo dnf install 'perl(Confg::General)'
```

## `python2-lockfile` - 檔案鎖定
<a name="python2-lockfile"></a>

 `python2-lockfile` 套件位於 中EPEL7，AL2 包含`python-lockfile`套件。在 AL2023 中[Python 2.7 已替換為 Python 3](python2.7-no-more.md)，因此此套件的 *Python 2* 變體不會新增至 AL2023。

 此套件的 *Python 3* 版本*包含在 AL2023 中*。您可以使用下列其中一個命令在 AL2023 中安裝`python3-lockfile`套件：

```
[ec2-user ~]$ sudo dnf install python3-lockfile
```

 透過要求 DNF 安裝提供特定 Python 模組的套件，也可以安裝 Python 模組。

```
[ec2-user ~]$ sudo dnf install 'python3dist(lockfile)'
```

## `python2-rsa` - 純 Python RSA
<a name="python2-rsa"></a>

 `python2-rsa` 套件位於 中EPEL7，AL2 包含`python2-rsa`套件。在 AL2023 中[Python 2.7 已替換為 Python 3](python2.7-no-more.md)，因此此套件的 *Python 2* 變體不會新增至 AL2023。

 此套件的 *Python 3* 版本*包含在 AL2023 中*。您可以使用下列其中一個命令在 AL2023 中安裝`python3-rsa`套件：

```
[ec2-user ~]$ sudo dnf install python3-rsa
```

 透過要求 DNF 安裝提供特定 Python 模組的套件，也可以安裝 Python 模組。

```
[ec2-user ~]$ sudo dnf install 'python3dist(rsa)'
```

## `python2-simplejson` - Python 2 的 JSON 常式
<a name="python2-simplejson"></a>

 `python2-simplejson` 套件位於 中EPEL7。在 AL2023 中[Python 2.7 已替換為 Python 3](python2.7-no-more.md)，因此此套件的 *Python 2* 變體將不會新增至 AL2023。

 此套件的 *Python 3* 版本*包含在 AL2023 中*。您可以使用下列命令在 AL2023 中安裝`python3-simplejson`套件：

```
[ec2-user ~]$ sudo dnf install python3-simplejson
```

 透過要求 DNF 安裝提供特定 Python 模組的套件，也可以安裝 Python 模組。

```
[ec2-user ~]$ sudo dnf install 'python3dist(simplejson)'
```

## `rkhunter` - Rootkit Hunter
<a name="rkhunter"></a>

 `rkhunter` 套件與 包含在 AL2023 中`chkrootkit`。

```
[ec2-user ~]$ sudo dnf install rkhunter
```

```
[ec2-user ~]$ sudo dnf install chkrootkit
```

## `rssh` - 與 OpenSSH 搭配使用的受限制 Shell
<a name="rssh"></a>

 `rssh` 套件位於 中EPEL7。上游[http://www.pizzashack.org/rssh/](http://www.pizzashack.org/rssh/)套件不受維護，作者將無法修正的安全問題視為原因。

 作者引用無法修正的安全問題時，不會規劃`rssh`將 新增至 AL2023。

## `sscg` - 自我簽署的 SSL 憑證產生器
<a name="sscg"></a>

 `sscg` 套件位於 AL2 核心，以及 中EPEL7。`sscg` 套件也是 AL2023 的一部分。

```
[ec2-user ~]$ sudo dnf install sscg
```

## `stress` - 壓力測試
<a name="stress"></a>

 `stress` 套件位於 中EPEL7，也可用於 AL1 

 `stress` 套件包含在 AL2023 中，可透過執行下列命令來安裝：

```
[ec2-user ~]$ sudo dnf install stress
```

## `stress-ng` - 壓力測試
<a name="stress-ng"></a>

 `stress-ng` 套件位於 中EPEL7，也可用於 `testing` AL2 Extra。

 `stress-ng` 套件包含在 AL2023 中，可透過執行下列命令來安裝：

```
[ec2-user ~]$ sudo dnf install stress-ng
```

## `tmpwatch` - 根據上次存取時間移除檔案
<a name="tmpwatch"></a>

 在 Amazon Linux 2023 中，此功能由 提供[https://www.freedesktop.org/software/systemd/man/latest/systemd-tmpfiles.html](https://www.freedesktop.org/software/systemd/man/latest/systemd-tmpfiles.html)。

## `xmlstarlet` - 命令列 XML 公用程式
<a name="xmlstarlet"></a>

 `xmlstarlet` 套件位於 中EPEL7，不適用於 AL2023。

 超過 9 年未接觸上游套件 （上次接觸時間是 2014 年 8 月）。另外四年前 （至少自 2010 年 7 月起），對新維護器的請求已無回應。因此，未計劃將 `xmlstarlet`新增至 AL2023。