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,47 @@
> 本文作者:丁辉
# Centos配置本地Yum源
1. 进入目录
```bash
cd /etc/yum.repos.d/
```
2. 移走其他文件
```bash
mkdir /opt/yum
mv * /opt/yum
```
3. 创建文件并编写内容
```bash
vi yum.repo
```
内容如下
```bash
[name]
name=yum
baseurl=file:///mnt/
gpgcheck=0
enabled=1
```
4. 挂载镜像DVD
```bash
mount /dev/cdrom /mnt/
```
5. 清理缓存
```bash
yum clean all
yum makecache
```