Skip to content
This repository was archived by the owner on Jul 4, 2020. It is now read-only.

CentOS 미러

kim yongbin edited this page May 27, 2020 · 1 revision

로컬 네트워크가 인터넷이 되지 않기 때문에 내부에 CentOS 미러를 운영해야 한다.

현재 dl.2lfilm.com 에서 서비스. sync-centos-mirror.sh 로 업데이트. yum 로컬 미러 설정

레포지터리 설정 디렉토리에 들어가 모든 repo 파일을 백업한다.

cd /etc/yum.repos.d
mkdir backup
mv *.repo backup

이 디렉토리에 local.repo 파일을 만들고 아래 내용을 채워넣는다.

[CentOS-Local-Mirror]
name=CentOS Local Mirror
baseurl=http://dl.2lfilm.com/centos-mirror/$releasever/os/x86_64
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-$releasever

Clone this wiki locally