Skip to content

Commit d8a2b2b

Browse files
committed
2017-05-23 yum 命令
1 parent 767d818 commit d8a2b2b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Bash-Other-Bash.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@
1212
- `rpm -qa | grep jdk`,查看 jdk 是否被安装
1313
- 卸载
1414
- `rpm -e jdk`,卸载 jdk(一般卸载的时候都要先用 rpm -qa 看下整个软件的全名)
15+
- YUM 软件管理:
16+
- `yum install -y httpd`,安装 apache
17+
- `yum remove -y httpd`,卸载 apache
18+
- `yum info -y httpd`,查看 apache 版本信息
19+
- `yum list --showduplicates httpd`,查看可以安装的版本
20+
- 更多命令可以看:<http://man.linuxde.net/yum>
1521
- 查看某个配置文件,排除掉里面以 # 开头的注释内容:
1622
- `grep '^[^#]' /etc/openvpn/server.conf`
1723
- 查看某个配置文件,排除掉里面以 # 开头和 ; 开头的注释内容:

0 commit comments

Comments
 (0)