Skip to content Skip to sidebar Skip to footer

How to Mounting 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 serves to attach the filesystem found on some device to the big file tree. Conversely, the umount(8) command will detach it again.

Preparation

For this simulation, i will use the VM-Ware for my Workstation, and dont forget to insert .iso to this VM, bellow is capture make mount is worked.

insert .iso to vm
insert .iso to vm

after that .iso conected can you see in vm too with command
# mount -t iso9600 /dev/cdrom /media 
# ll /media

mounting cdrom to media
mounting cdrom to media


Setup Local.repo

Next we setup 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


Makesure this local repo worked

For this, you just install something, on this example i want install nano

# yum install nano

intsalling nano
intsalling nano
Bangkit Ade Saputra
Bangkit Ade Saputra Hard-working professional with experience and a proven knowledge of operating system, server architecture and system configuration.

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