synchronization
Some checks failed
continuous-integration/drone Build is failing

This commit is contained in:
2025-08-25 15:57:40 +08:00
commit cee91802b3
106 changed files with 9124 additions and 0 deletions

View File

@@ -0,0 +1,55 @@
> 本文作者:丁辉
# Yum打包Rpm文件
> 拿 vim 举例
## 方法一
1. 安装工具
```bash
yum install -y yum-plugin-downloadonly
```
2. 下载
```bash
yum install -y --downloadonly --downloaddir=. vim
```
3. 安装
```bash
rpm -ivh *.rpm --force --nodeps
```
## 方法二
> 只下载保存rpm文件包, 离线环境也可以用
1. 创建目录
```bash
mkdir /root/vim/
```
2. 下载
```bash
yumdownloader --resolve --destdir=/root/vim/ vim
```
> 安装工具
>
> ```bash
> yum install yum-utils -y
> ```
3. 安装
```bash
cd /root/vim/ && rpm -ivh *.rpm --force --nodeps
```