월루를 꿈꾸는 대학생

cenetos8 local repo 작성법 본문

카테고리 없음

cenetos8 local repo 작성법

하즈시 2021. 7. 6. 00:55
728x90

 

sr0에 centos8 cd를 넣어줌 

 

 

mkdir /localrepo

 

mount /dev/sr0 localrepo/

 

 

 

cp -a localrepo/media.repo /etc/yum.repos.d/local.repo

chmod 644 /etc/yum.repos.d/local.repo 

 

 

 

nano /etc/yum.repos.d/local.repo 

 

내용 변경 

[InstallMedia-BaseOS]
name=CentOS Linux 8 - BaseOS
metadata_expire=-1
gpgcheck=1
enabled=1
baseurl=file:///localrepo/BaseOS/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial

[InstallMedia-AppStream]
name=CentOS Linux 8 - AppStream
metadata_expire=-1
gpgcheck=1
enabled=1
baseurl=file:///localrepo/AppStream/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial

 

repo 작성 완료 했으니 적용

 

yum clean all

 

yum repolist

 

 

 

 

 

 

 

 

 

 

 

 

 

https://www.tecmint.com/create-local-yum-repository-on-centos-8/

 

How to Set Up a Local Yum/DNF Repository on CentOS 8

In this article, you will learn how you can locally set up a DNF or YUM repository on your CentOS 8 system using an ISO or an installation DVD. CentOS 8 ships with 2 repositories: BaseOS and AppStream (Application Stream) – So what’s the difference bet

www.tecmint.com

 

 

https://boring-notes.tistory.com/entry/CentOS-local-YUM-Repository-%EB%A7%8C%EB%93%A4%EA%B8%B0

 

[CentOS] local YUM Repository 만들기 - CentOS Repository

특정 패키지들을 설치할때 인터넷이 되는 Online 환경에서 YUM명령어를 통해 쉽고 빠르게 설치를 한다 그러나 Offline 인터넷이 안되는 환경에서는 YUM명령어를 사용하여 패키지를 다운받은 후 설치

boring-notes.tistory.com

 

 

 

 

https://damduc.tistory.com/276

 

mount -o loop 옵션

위키 피디아 : In Unix-like operating systems, a loop device, vnd (vnode disk), or lofi (loopback file interface) is a pseudo-device that makes a file accessible as a block device. 파일을..

damduc.tistory.com

 

 

 

728x90