redhat – local dvd repo

# mounting iso to redhat

mount -0 loop rhel7.iso /mnt/rhel7

# or locate where the dvd mount, ex /mnt/rhel7

ln -s /mnt/rhel7 /tmp/rhel7

# create new repo to dvd

nano  /etc/yum.repo.d/rhel7.repo

# input this code

[RepoLocal]
name=baseurl
baseurl=file:///tmp/rhel7/
enable=1
gpgcheck=0

# clean repo and makecache

yum clean all && yum makecache

# test to install

yum install perl

Published by

G3n1k

just to remember what i had known :)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s