해당 로컬 Repo는 폐쇄망일 경우 어떤 rpm을 설치해야 할지 모르고 외부망에 붙을 수 없는 경우 처음부터 Repo 들을 가지고 들어와서 구성하여 사용하는 경우에 이용 된다.
반드시 외부망에 붙을 수 있는 PC 가 있어야 하며, 폐쇄망으로 해당 Repo 파일들을 옮길 수 있어야 한다.
http://ftp.kaist.ac.kr/CentOS/7.9.2009/
wget --recursive --no-parent http://ftp.kaist.ac.kr/CentOS/7.9.2009/os/x86_64/
wget --recursive --no-parent http://ftp.kaist.ac.kr/CentOS/7.9.2009/extras/x86_64/
wget --recursive --no-parent http://ftp.kaist.ac.kr/CentOS/7.9.2009/updates/x86_64/
wget --recursive --no-parent http://ftp.kaist.ac.kr/CentOS/7.9.2009/centosplus/x86_64/
mkdir /kaist_repo_os
mv ./x86_64/* /kaist_repo_os
vi /etc/yum.repo.d/kaist.repo
[kaist-os]
name=kaist-os
baseurl=file:///kaist_repo_os
enabled=1
gpgcheck=0
[kaist-updates]
name=kaist-updates
baseurl=file:///kaist_repo_updates
enabled=1
gpgcheck=0
[kaist-oextras]
name=kaist-extras
baseurl=file:///kaist_repo_extras
enabled=1
gpgcheck=0
[kaist-plus]
name=kaist-centosplus
baseurl=file:///kaist_repo_centosplus
enabled=1
gpgcheck=0
yum clean all
yum repolist