简体   繁体   English

无法在RHEL 7.1中使用yum安装

[英]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”显示

  1. httpd.x86_64 : Apache HTTP Server httpd-devel.x86_64 : Development interfaces for the Apache HTTP server httpd-manual.noarch : Documentation for the Apache HTTP server. httpd.x86_64:Apache HTTP服务器httpd-devel.x86_64:Apache HTTP服务器的开发接口httpd-manual.noarch:Apache HTTP服务器的文档。
  2. httpd-tools.x86_64 : Tools for use with the Apache HTTP Server httpd-tools.x86_64:与Apache HTTP Server一起使用的工具
  3. List item libmicrohttpd.i686 : Lightweight library for embedding a webserver in applications 列表项libmicrohttpd.i686:用于在应用程序中嵌入Web服务器的轻量级库
  4. libmicrohttpd.x86_64 : Lightweight library for embedding a webserver in applications libmicrohttpd.x86_64:用于在应用程序中嵌入Web服务器的轻量级库
  5. mod_auth_mellon.x86_64 : A SAML 2.0 authentication module for the Apache Httpd Server mod_dav_svn.x86_64 : Apache httpd module for Subversion server mod_auth_mellon.x86_64:适用于Apache Httpd服务器的SAML 2.0身份验证模块mod_dav_svn.x86_64:适用于Subversion服务器的Apache httpd模块

then check the output it gives you. 然后检查它给您的输出。 By taking the output data we need to install any softwares using yum. 通过获取输出数据,我们需要使用yum安装任何软件。

Now use 现在使用

  1. 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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM