## rpm安装
![](https://img.kancloud.cn/93/2e/932ee35f81e97c26e54fd536e5b2661b_683x181.png)
![](https://img.kancloud.cn/41/64/41640c05e2fe50ccec1b412edf593e3c_593x366.png)
![](https://img.kancloud.cn/4d/aa/4daa6f5afe1ad3106ca110948e3d8611_504x228.png)
![](https://img.kancloud.cn/d6/98/d698ce0993b63cbf5eca1abb10ff059d_407x256.png)
![](https://img.kancloud.cn/3a/c3/3ac3b5ac84796354238ce318130333cf_501x410.png)
> 一般用如下命令查询软件包是否安装,因为rpm 要求包全名查询,所以只能全部列出,然后从结果里面查询。
```
rpm -aq | grep mysql
```
![](https://img.kancloud.cn/bb/41/bb412057e2872afa5ff385afb40e899a_611x276.png)
![](https://img.kancloud.cn/b0/b4/b0b49d080b22426897012ac30b851db1_630x255.png)
![](https://img.kancloud.cn/40/b6/40b60a45524a4cc330f6d5082627ede8_782x221.png)
![](https://img.kancloud.cn/2d/a7/2da7d0dcbe2b6f98d747359eb4037ac3_620x251.png)
![](https://img.kancloud.cn/3e/6d/3e6d0346267c8d989b4e0d72b3f0bc1d_816x260.png)