无法在RHEL 7.1中使用yum安装 [英] can't install using yum in RHEL 7.1

查看:54
本文介绍了无法在RHEL 7.1中使用yum安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 amazon aws 上有一个 RHEL 7.1 实例,现在我正在尝试使用 yum 安装软件,但即使是非常常见的软件也不可用.

I got a RHEL 7.1 instance on amazon aws, now i am trying to install softwares using yum, but even very common softwares aren't available.

例如,

$ sudo yum install lynx

Loaded plugins: amazon-id, rhui-lb
No package lynx available.
Error: Nothing to do

我是linux和 yum 的新手.该怎么办,以便可以使用 yum 轻松安装软件.

I am new to linux and yum. What's to be done so I can install softwares easily using yum.

我应该添加存储库吗?

在这里,我尝试执行此处所说的内容-> 顶部5个CentOS/RHEL 7/6/5和Fedora的Yum存储库,在这里->

Here, I tried doing what's said here -> Top 5 Yum Repositories for CentOS/RHEL 7/6/5 and Fedora, and here -> Install RepoForge (RPMForge) Repository On RHEL, CentOS, Scientific Linux 7/6.x/5.x/4.x but to no use.

感谢任何帮助.

推荐答案

Lynx在可选存储库中.使用以下命令检查已启用的存储库:

Lynx is in optional repo. Check enabled repos with:

yum repolist all

启用可选(以 Oracle Linux 为例):

Enable optional (using Oracle Linux as example):

sudo yum install yum-utils
sudo yum-config-manager --enable ol7_optional_latest

Lynx应该立即安装,没有问题:

Lynx should be installed now without problems:

sudo yum install lynx

这篇关于无法在RHEL 7.1中使用yum安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆