centos 7 : yum repos by iso file Hint

centos 7 : yum repos by iso file Hint

 

# mkdir /mnt/centos7

 

# mount -t iso9660 -o loop /db/install/CentOS-7/CentOS-7-x86_64-DVD-1804.iso /mnt/centos7

 

# /mnt/centos7

 

# cat /mnt/centos7/.discinfo 

 

-----------------------------

 

1543162572.807980

7.6

x86_64

 

-----------------------------

 

# ls -al /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

 

# vi /etc/yum.repos.d/owl.repo 

 

-----------------------------

 

[owl]

mediaid=1543162572.807980

name=owl

baseurl=file:///mnt/centos7

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

enabled=1

gpgcheck=1

 

-----------------------------

 

# yum --disablerepo="*" --enablerepo="owl" update