The RHEL6.1 configuration disc is a local yum Source: the first step is to mount the CD. I mounted the CD to/mnt. Let's go to/mnt to check the content. Now let's write the yum configuration file and use the vim editor in/etc/ yum. repos. d directory to directly edit a local. repo file and save the file content as follows. Here it corresponds to Several folders on the CD and saves and exits. Next we will test whether the local yum source can search for software packages on the CD.
The RHEL6.1 configuration disc is a local yum Source:
The first step is to mount the disc.
I mounted the CD to/mnt.
Let's take a look at the content in/mnt.
Now let's write the yum configuration file.
Use the vim editor to directly edit a local. repo file in the/etc/yum. repos. d directory and save
The file content is as follows:
The corresponding folder on the CD
Save and exit. Let's test whether the local yum source can search for the software package on the CD.
Obviously, what we want has appeared!
The next time you need to use something on the CD, mount the CD to the/mnt directory!