November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Categories

November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Create a local DVD repository for YUM

he software repositories created during the installation will point only the Red Hat online and will require your subscription code. Installing from the online repositories will always ensure that you are working with the latest software versions but for testing the beta in a non-live environment may not be required. We will use the DVD repository. To set this up login as root and create a file in the /etc/yum.repos.d/ directory, the file should end with the suffix .repo. We will create a file call dvd.repo:

[rhel7-dvd]
name=rhel7-dvd
baseurl=file:///mnt/dvd
enabled=1
gpgcheck=0

You can see from the baseurl entry that we point to /mnt/dvd for the yum to use. We must make sure that the install DVD is mounted to the location and can add an entry to the /etc/fstab file or setup the auto-mount service. We use the fstab file and the lab and have added this entry:

/dev/cdrom  /mnt/dvd  iso9660  ro  0 0

To display available repositories we can use the command

yum repolist all

From the output shown in the screen-shot we can see that the dvd repo is enabled but the standard repos are not enabled until we enable our subscription

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>