How to Mounting CD-ROM for Make Repository Local in RHEL 7
How to Mount CD-ROM for Make Repository Local in RHEL 7 - All files accessible in a Unix system are arranged in one big tree, the file hierarchy, rooted at /. These files can be spread out over several devices. The mount command attaches the filesystem found on some devices to the big file tree. Conversely, the umount command will detach it again.
Preparation
For this simulation, I will use the VM-Ware for my Workstation, and don't forget to insert .iso to this VM, below is the capture make mount is worked.
![]() |
insert .iso to vm |
Configure
Mounting
after that .iso connected can you see in VM too with command
# mount -t iso9660 /dev/cdrom /media # ll /media
If using iso dvd, mount the iso with the following command:
# mount -o loop filename.iso /mnt/cdrom (replace filename.iso according to the file used, for example: rhel7.iso)
Setup Local. repo
Next, we set up the config for this repo with this script
# vi /etc/yum.repos.d/local.repo
[RHEL7] name=Red Hat 7.7 Enterprise Linux Installation DVD baseurl=file:///media/ enabled=1 gpgcheck=0
# yum clean all # yum repolist all
![]() |
local repo |
Make sure this local repo worked
For this, you just install something, on this example, I want to install a nano
# yum install nano
![]() |
installing nano |
Yes, you have successfully installed the tools provided by the local repository. That's basically the explanation of How to Mount CD-ROM for Make Repository Local in RHEL 7.
Maybe that's all I can share with you guys, hopefully, this article will be useful.
Thank You.
Post a Comment for "How to Mounting CD-ROM for Make Repository Local in RHEL 7"