> For the complete documentation index, see [llms.txt](https://wiki.clay-wangzhi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.clay-wangzhi.com/linux/ruan-jian-bao-guan-li.md).

# 软件包管理

## yum管理RPM包

清空缓存及其它文件

```
yum clean all
```

建立缓存数据库

```
yum makecache
```

查询可用的仓库

```
yum repolist
```

查询

```
yum list mysql-server
```

升级

```
yum -y update
```

查询指定的文件属于哪个包

```
yum provides */httpd
```

卸载

```
yum -y remove mysql-server
```

## 使用RPM工具管理RPM包

安装

```
rpm -ivh xxx.rpm
```

升级

```
rpm -Uvh xxx.rpm
```

查询

```
rpm -q xxx //查询指定包是否安装
rpm -ql xxx //查询xxx安装的文件
```

卸载

```
rpm -e xxx
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.clay-wangzhi.com/linux/ruan-jian-bao-guan-li.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
