Skip to content Skip to sidebar Skip to footer

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
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
mounting cdrom to media
mounting cdrom to 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
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
intsalling 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.

Bangkit Ade Saputra
Bangkit Ade Saputra At the end of the day, my job involves people. we're complicated, we're always changing, we have millions of things going on in our lives, and changing jobs is always a big decision.

Post a Comment for "How to Mounting CD-ROM for Make Repository Local in RHEL 7"