linux命令(CentOS7)yum search

linux命令yum search用于在yum软件仓库中搜索软件包。当大家想要安装一个新的软件包,但不确定它的确切名称时,可以使用此命令来搜索相关的软件包。

1.yum search用法

yum search <关键词>

2.yum search样例

命令:

yum search httpd

[root@elasticsearch ~]# yum search httpd
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
=========================================== N/S matched: httpd ============================================
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-tools.x86_64 : Tools for use with the Apache HTTP Server
libmicrohttpd.x86_64 : Lightweight library for embedding a webserver in applications
mod_dav_svn.x86_64 : Apache httpd module for Subversion server

  Name and summary matches only, use "search all" for everything.
[root@elasticsearch ~]# 

  • 15
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
要在Centos 7系统上配置阿里云镜像源,您可以按照以下步骤进行操作: 1. 首先,您需要使用wget或curl命令下载CentOS-Base.repo文件,该文件包含了阿里云镜像源的配置信息。您可以使用以下命令进行下载: ```shell wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo ``` 或者 ```shell curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo ``` 确保文件下载完成后,您可以使用以下命令查看文件是否下载完成: ```shell ll /etc/yum.repos.d/ ``` 2. 接下来,您需要编辑CentOS-Media.repo文件,该文件用于配置CentOS的光盘镜像源。您可以使用vim编辑器打开该文件: ```shell vim /etc/yum.repos.d/CentOS-Media.repo ``` 在文件中找到baseurl一行,并将其注释掉(在行前面加上#),然后在下方添加以下内容: ``` baseurl=file:///mnt/cdrom gpgcheck=0 enabled=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 ``` 保存并退出文件。 3. 最后,您可以使用yum命令来更新镜像源并安装软件包: ```shell yum update ``` 现在您的Centos 7系统已经成功配置了阿里云镜像源,您可以更快速和稳定地下载和安装软件包了。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [CentOS7 配置阿里云yum](https://blog.csdn.net/qulian2099/article/details/129955241)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] - *2* *3* [Centos7配置yum源(本地yum源和阿里网络yum源)](https://blog.csdn.net/qq_46162321/article/details/115006096)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

小黑要上天

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值