Myluzh Blog

CentOS7 部署本地YUM仓库

2024-5-31 myluzh Linux

0x01 概述 环境准备: CentOS7_A:YUM-SERVER,用来部署本地yum仓库。 ip:172.16.10.78 CentOS7_A:用来测试搭建YUM仓库是否生效。 ip:172.16.10.79 0x02 YUM-SERVER部署web服务 在yum-server机子上搭建一个web服务,开启目录索引 # 写入nginx repo cat <<EOF > nginx.repo [nginx-stable] name=nginx stable repo baseurl=http://nginx.org/packages/centos/\$releasever/\$basearch/ gpgcheck=1 enabled=1 gpgkey=https://nginx.org/keys/nginx_signing.key module_hotfixes=true [nginx-mainline] name=nginx mainline repo baseurl=http://nginx.org/packages/mainline/centos/\$r...

阅读全文>>

标签: centos yum rpm repo centos7 reposync createrepo

评论(0) (166)

CentOS6~8 配置阿里云yum源与epel源

2023-3-8 myluzh Linux

CentOS 6 wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-6.10.repo 或者 curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-6.10.repo CentOS 7 wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo 或者 curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo CentOS 8 wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo 或者...

阅读全文>>

标签: yum epel repo

评论(0) (331)