📜  安装 epel repo centos 7 - Shell-Bash (1)

📅  最后修改于: 2023-12-03 14:53:30.812000             🧑  作者: Mango

安装 epel repo centos 7 - Shell-Bash

如果你是 CentOS 7 用户, 你可能需要安装 EPEL repository 来方便你完成某些任务, 这个过程有以下步骤:

  1. 下载 EPEL Repository 文件

在 CentOS 7 中, EPEL Repository 可以通过以下命令直接下载:

sudo yum install epel-release
  1. 检查 EPEL Repository 是否成功下载

检查 EPEL Repository 是否已成功下载, 可以通过以下命令查看:

sudo yum repolist
  1. 验证 EPEL Repository 是否可用

这一步可以再次确认 EPEL Repository 是否成功开启, 通过以下命令验证:

sudo yum list epel-release

如果以上命令成功运行, 则说明 EPEL Repository 已成功开启。

以上步骤比较简单, 如果你是 CentOS 7 用户, 只需执行上述命令即可完成 EPEL Repository 安装, 此后你就可以像启用任何其他 Repository 一样, 通过 yum 命令来使用 EPEL Repository.