Linux CentOS 7 - Mounting the iso file as a CD-ROM in a repo
Mount the iso file as a CD-ROM in a repository. Provided your iso file contains the complete operative system, this allows you to disable the default repositories and mirrors and install all required packages without downloading them from the internet. In other words you can work off-line.
On system1 and/or system2
Edit the repo file
vim /etc/yum.repos.d/CentOS-CD.repo
[CentOS-CD]
name = CD ROM
baseurl = file:///media/CentOS
gpgcheck = 0
enabled = 1
Mount the iso file as a CD-ROM in a repository.
Make a mount point
mkdir /media/CentOS
Edit the fstab file
/dev/cdrom /media/CentOS iso9660 loop 0 0
mont -a
Verify
df -Th
it must return the /dev/loop0 disk
yum repolist
it must show the repositories contained in the iso file.
Commenti
Posta un commento