[英]can't install using yum in RHEL 7.1
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. 我在amazon aws上获得了一个RHEL 7.1实例,现在我正尝试使用yum安装软件,但是甚至无法使用非常常见的软件。
For example, 例如,
$ sudo yum install lynx
Loaded plugins: amazon-id, rhui-lb
No package lynx available.
Error: Nothing to do
I am new to linux and yum
. 我是linux和
yum
新手。 What's to be done so I can install softwares easily using yum
. 该怎么办,以便可以使用
yum
轻松安装软件。
Should I be adding repos? 我应该添加回购吗?
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. 在这里,我尝试执行此处所说的操作-> CentOS / RHEL 7/6/5和Fedora的前5个Yum存储库 ,在这里-> 在RHEL,CentOS,Scientific Linux 7 / 6.x / 5上安装RepoForge(RPMForge)存储库.x / 4.x,但没有用。
Appreciate any help. 感谢任何帮助。
You first need to search whether the repo is present by using " yum search lynx" 您首先需要使用“ yum search lynx”搜索回购是否存在
Loaded plugins: amazon-id, rhui-lb ================================ Matched: lynx ================================================================= pinfo.x86_64 : An info file viewer 已加载的插件:Amazon-id,rhui-lb ==============================匹配:lynx ===== ================================================== ========== pinfo.x86_64:信息文件查看器
For example 例如
"yum search httpd" shows “ yum search httpd”显示
then check the output it gives you. 然后检查它给您的输出。 By taking the output data we need to install any softwares using yum.
通过获取输出数据,我们需要使用yum安装任何软件。
Now use 现在使用
List item 项目清单
yum install "package name" yum安装“软件包名称”
Lynx is in optional repo. Lynx在可选的回购中。 Check enabled repos with:
使用以下命令检查已启用的存储库:
yum repolist all
Enable optional (using Oracle Linux as example): 启用可选 (以Oracle Linux为例):
sudo yum install yum-utils
sudo yum-config-manager --enable ol7_optional_latest
Lynx should be installed now without problems: Lynx应该立即安装而没有问题:
sudo yum install lynx
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.