加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

yum常用命令上

发布时间:2020-12-15 16:23:46 所属栏目:安全 来源:网络整理
导读:一 查询 yum list 查询所有可用软件包列表 yum search 关键字 搜索服务器上所有和关键字相关的包 二 实战 [root@localhost ~]# yum search httpd Loaded plugins: fastestmirror,langpacks Loading mirror speeds from cached hostfile ====================
一 查询
yum list
查询所有可用软件包列表
yum search 关键字
搜索服务器上所有和关键字相关的包
二 实战
[root@localhost ~]# yum search httpd
Loaded plugins: fastestmirror,langpacks
Loading mirror speeds from cached hostfile
=================================================== N/S matched: httpd ====================================================
libmicrohttpd-devel.i686 : Development files for libmicrohttpd
libmicrohttpd-devel.x86_64 : Development files for libmicrohttpd
libmicrohttpd-doc.noarch : Documentation for libmicrohttpd
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.i686 : Lightweight library for embedding a webserver in applications
libmicrohttpd.x86_64 : Lightweight library for embedding a webserver in applications
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
Name and summary matches only,use "search all" for everything.
三 安装
yum -y install 包名
选项:
-install:安装
-y:自动回答yes
yum安装只写包名。
举例:
yum -y install gcc

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读