1. Create a file directory (that is, a folder ). [You can also choose not to create. We can use the existing file directory, such as the MNT file directory] But I still created a file directory.
Command: mkdir/localiso
2. Create one or more directories under this directory, for example, I use mkdir/localiso/DVD
3. Mount the disc to this directory and run the following command: Mount/dev/DVD/localiso/DVD.
4. Go to the/etc file directory, find the yum. conf file to open it, and add the following content at the end:
[ISO]
Name = Local
Baseurl = file: // localiso/DVD
Gpgcheck = 0
Save and exit
{Note: Do not do this. You can add a file named local. Repo in the/etc/yum. Repos. d directory and enter the following content to open the file:
[ISO]
Name = Local
Baseurl = file: // localiso/DVD
Enabled = 1
Gpgcheck = 0
Save and exit. In fact, I think this method may be better.
}
5. Open the software library management and turn off some default software libraries.
{You can also open several files under/etc/yum. Repos. D, and change enabled = to 1 next to 0}
Click "Add/delete software" to manage the software administrator.