当前位置:网站首页>Rocky基础-shell脚本创建yum源
Rocky基础-shell脚本创建yum源
2022-07-16 22:38:00 【51CTO】
[[email protected] ~]# vim yum.sh
#!/bin/bash
cd /etc/yum.repos.d/
mkdir bak
mv *.repo bak
cat > baseos.repo <<EOF
[baseos]
name=baseos
baseurl=file:///misc/cd/BaseOS/ #光盘目录
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rockyofficial
EOF
cat > appstream.repo <<EOF
[appstream]
name=appstream
baseurl=file:///misc/cd/AppStream
gpgcheck=0
EOF
cat > extras.repo <<EOF
[extras]
name=extras
baseurl=https://mirrors.aliyun.com/rockylinux/8/extras/x86_64/os/
gpgcheck=0
EOF
cat > epel.repo <<EOF
[epel]
name=epel
baseurl=https://mirrors.aliyun.com/epel/8/Everything/x86_64
gpgcheck=0
EOF
边栏推荐
- 推荐一个讲即时通信的博客
- Redis has three modes -- master-slave replication, sentinel mode, and cluster
- Beautiful Soup模块是什么
- C语言的内存管理-堆、栈等
- MySQL one basic syntax
- Word2Vec Skip-gram 模型实现
- Kubesphere deployment
- PHP uploads Excel files through form forms and imports Excel data into the database
- boost. property_ The help class of tree parsing XML and the solution of Chinese parsing problem
- WordPress主题分享:Flatsome主题v3.15.7免费下载 2022年最新版
猜你喜欢
随机推荐
Using the third-party built-in module to realize the function of converting numbers to uppercase in nodejs
乐观锁和悲观锁在kubernetes中的应用
Fiddler cannot catch the package of wechat applet on PC
The relationship between filedescriptor and open file in liunx
Using backup to restore the database, but there is no control file. How to solve the file
Openpose: estimation de la pose 2D Multi - personnes en temps réel à l'aide d'un champ d'affinité partiel
Glide source code analysis (4.13.2)
iptables学习笔记
【考试】二阶段2201班考试答案(做错一概不负责)
Arrow function of ES6
C # draw rectangle, ellipse and text for the picture
php通过form表单上传Excel文件并把Excel数据导入到数据库中
One of the series of articles on data access platform (DIP) | function and architecture analysis
ans1编码解析
Recommend a blog about instant messaging
数据库的主从分离
WordPress主题分享:The7主题v10.11免费下载 2022年最新版
学习要有激情
The difference between cookies and session and JWT
笔记





![[Vulnhub] Raven-2 (mysql-UDF提权)](/img/10/68f77c6f8a99be13de3e45cc08287a.png)
![[acwing周赛复盘] 第 60 场周赛20220716](/img/59/38fde90ff1d4221bd35379df1291d1.png)

