Main » 2017 » January » 30 » Use CentOS distribution iso as yum repository on VMWare
5:34 PM
Use CentOS distribution iso as yum repository on VMWare
I have CentOS 7.0 iso set used as CD/DVD in VMWare, and wanted to use the image as the source to install rpms to my VMWare instance. It appeared quite easy to do:
Even though the iso is used as the CD/DVD in the virtual machine and is "inserted", you still have to mount on the CentOS: sudo mount -t iso9660 /dev/sr0 /mnt
Now create a repo file in /etc/yum.repos.d/. E.g. sudo vi /etc/yum.repos.d/CentOS-Media.repo: