linux 命令和教程补充

This commit is contained in:
estomm
2021-12-24 11:16:28 +08:00
parent 40e916976b
commit b7c3653392
586 changed files with 46455 additions and 39 deletions

35
Linux/command/rpmquery.md Normal file
View File

@@ -0,0 +1,35 @@
rpmquery
===
从RPM数据库中查询软件包信息
## 补充说明
**rpmquery命令** 使用多种依据从rpm数据库中查询软件包信息。
### 语法
```shell
rpmquery(选项)
```
### 选项
```shell
-qf查询指定的文件所属的软件包
-q查询指定的软件包是否被安装
-qc查询软件包中的配置文件
-qd查询软件包中的文档文件
-qi查询软件包的基本信息。
```
### 实例
使用rpmquery命令查询指定文件所属的软件包
```shell
[root@localhost ~]# rpmquery -qf /usr/bin/htpasswd
httpd-2.2.3-81.el5.centos
```