yum常用命令上

前端之家收集整理的这篇文章主要介绍了yum常用命令上前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
查询
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
原文链接:https://www.f2er.com/bash/391017.html

猜你在找的Bash相关文章