有网站如何做直播,舟山公司做网站,机械加工网上找订单,怎么做网站demoLinux运维工具-ywtool 目录 一.系统环境二.修改yum文件2.1 CentOS-Stream-AppStream.repo2.2 CentOS-Stream-BaseOS.repo2.3 CentOS-Stream-Extras.repo 三.只有一个配置文件四.其他知识4.1 如果想要启用其他源,修改文件配置:enabled14.2 国内源链接 一.系统环境
CentOS Strea… Linux运维工具-ywtool 目录 一.系统环境二.修改yum文件2.1 CentOS-Stream-AppStream.repo2.2 CentOS-Stream-BaseOS.repo2.3 CentOS-Stream-Extras.repo 三.只有一个配置文件四.其他知识4.1 如果想要启用其他源,修改文件配置:enabled14.2 国内源链接 一.系统环境
CentOS Stream 8/9都适用
二.修改yum文件
备注:主要修改CentOS-Stream-AppStream.repo、CentOS-Stream-Extras.repo、CentOS-Stream-BaseOS.repo其他文件默认都是禁用的,修不修改无所谓。
2.1 CentOS-Stream-AppStream.repo
[rootlocalhost ]# vim /etc/yum.repos.d/CentOS-Stream-AppStream.repo[appstream]
nameCentOS Stream $releasever - AppStream
#mirrorlisthttp://mirrorlist.centos.org/?release$streamarch$basearchrepoAppStreaminfra$infra
baseurlhttps://mirrors.aliyun.com/$contentdir/$stream/AppStream/$basearch/os/
gpgcheck1
enabled1
gpgkeyfile:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial2.2 CentOS-Stream-BaseOS.repo
[rootlocalhost ]# vim /etc/yum.repos.d/CentOS-Stream-BaseOS.repo[baseos]
nameCentOS Stream $releasever - BaseOS
#mirrorlisthttp://mirrorlist.centos.org/?release$streamarch$basearchrepoBaseOSinfra$infra
baseurlhttps://mirrors.aliyun.com/$contentdir/$stream/BaseOS/$basearch/os/
gpgcheck1
enabled1
gpgkeyfile:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial2.3 CentOS-Stream-Extras.repo
[rootlocalhost ]# vim /etc/yum.repos.d/CentOS-Stream-Extras.repo[extras]
nameCentOS Stream $releasever - Extras
#mirrorlisthttp://mirrorlist.centos.org/?release$streamarch$basearchrepoextrasinfra$infra
baseurlhttps://mirrors.aliyun.com/$contentdir/$stream/extras/$basearch/os/
gpgcheck1
enabled1
gpgkeyfile:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial三.只有一个配置文件
如果觉得修改三个配置文件太麻烦,可以将/etc/yum.repos.d/目录里的文件备份移走,新建一个文件
[rootlocalhost yum.repos.d]# vim centos.repo[baseos]
nameCentOS Stream $releasever - BaseOS
baseurlhttps://mirrors.aliyun.com/centos-stream/$stream/BaseOS/$basearch/os/
gpgkeyfile:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck1
repo_gpgcheck0
metadata_expire6h
countme1
enabled1[baseos-debug]
nameCentOS Stream $releasever - BaseOS - Debug
baseurlhttps://mirrors.aliyun.com/centos-stream/$stream/BaseOS/$basearch/debug/tree/
gpgkeyfile:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck1
repo_gpgcheck0
metadata_expire6h
enabled0[baseos-source]
nameCentOS Stream $releasever - BaseOS - Source
baseurlhttps://mirrors.aliyun.com/centos-stream/$stream/BaseOS/source/tree/
gpgkeyfile:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck1
repo_gpgcheck0
metadata_expire6h
enabled0[appstream]
nameCentOS Stream $releasever - AppStream
baseurlhttps://mirrors.aliyun.com/centos-stream/$stream/AppStream/$basearch/os/
gpgkeyfile:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck1
repo_gpgcheck0
metadata_expire6h
countme1
enabled1[appstream-debug]
nameCentOS Stream $releasever - AppStream - Debug
baseurlhttps://mirrors.aliyun.com/centos-stream/$stream/AppStream/$basearch/debug/tree/
gpgkeyfile:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck1
repo_gpgcheck0
metadata_expire6h
enabled0[appstream-source]
nameCentOS Stream $releasever - AppStream - Source
baseurlhttps://mirrors.aliyun.com/centos-stream/$stream/AppStream/$basearch/debug/tree/
gpgkeyfile:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck1
repo_gpgcheck0
metadata_expire6h
enabled0[crb]
nameCentOS Stream $releasever - CRB
baseurlhttps://mirrors.aliyun.com/centos-stream/$stream/CRB/$basearch/os/
gpgkeyfile:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck1
repo_gpgcheck0
metadata_expire6h
countme1
enabled0[crb-debug]
nameCentOS Stream $releasever - CRB - Debug
baseurlhttps://mirrors.aliyun.com/centos-stream/$stream/CRB/$basearch/debug/tree/
gpgkeyfile:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck1
repo_gpgcheck0
metadata_expire6h
enabled0[crb-source]
nameCentOS Stream $releasever - CRB - Source
baseurlhttps://mirrors.aliyun.com/centos-stream/$stream/CRB/source/tree/
gpgkeyfile:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck1
repo_gpgcheck0
metadata_expire6h
enabled0四.其他知识
4.1 如果想要启用其他源,修改文件配置:enabled1 4.2 国内源链接
阿里云yum源 华为云yum源 移动云yum源 清华云yum源