如何在 OEL 7 中配置 EPEL 存储库
欢迎来到之路教程(on itroad-com)

解决方法

  1. 创建一个 repo 文件,如 /etc/yum/repos.d/epel-yum-ol7.repo。
    例如:
# cat /etc/yum.repos.d/epel-yum-ol7.repo
[ol7_epel]
name=Oracle Linux $releasever EPEL ($basearch)
baseurl=http://yum.oracle.com/repo/OracleLinux/OL7/developer_EPEL/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1
  1. 然后运行“yum repolist”命令查看存储库是否在那里。
# yum repolist
Loaded plugins: langpacks
repo id repo name status
ol7_UEKR3/x86_64 Latest Unbreakable Enterprise Kernel Release 3 for Oracle Linux 7Server (x86_64) 669
ol7_epel/x86_64 Oracle Linux 7Server EPEL (x86_64) 991
ol7_latest/x86_64 Oracle Linux 7Server Latest (x86_64) 23,095
repolist: 24,755
  1. 然后就可以用yum命令安装nrpe、nagios、nagios-plugins等你需要的包了。
    例如:
# yum install nrpe
yum install nrpe
Loaded plugins: langpacks

问题

如何从 OEL 7(Oracle Linux) 上的 EPEL 存储库安装/获取软件包?

日期:2020-09-17 00:13:05 来源:oir作者:oir