Overview
Yum is primarily used to automatically install and upgrade RPM packages, which automatically find and resolve dependencies between RPM packets. To successfully install the Update software or system using the Yum tool, you need to have a repository (software repository) with a variety of RPM packages, which we are used to as a Yum source. There are a lot of Yum sources on the network, but due to the network environment, the software installation takes too long or even fails. The slow progress bar is unbearable, especially when there are a large number of server packages that need to be installed. Therefore, when we optimize the system, we will replace the domestic source. In comparison, the biggest advantage of the local Yum source server is the fast network connectivity and stability of the LAN. With the Yum source server in the LAN, even if the Internet connection is interrupted, the software installation and upgrade of other Yum clients will not be affected.
Experimental Objectives
Set up a yum repository in a Linux system to solve the problem of installing a package with RPM that would cause the installation to fail because of a dependency on the package.
Experimental Environment
Linux operating system.
Linux System installs ISO image files.
Experimental Steps
1. Locate the ISO image file local path and check it on the device status.
2. Manually mount the ISO image file to the/mnt directory to view the Mount information.
3. In order to avoid the trouble of manual mounting on each boot, set the boot automatically mount.
4. In the YUM.REPOS.D directory, edit the Yum configuration file.
5. Check the Yum list to confirm that the Yum Warehouse installation was successful.
Build a Yum repository on a Linux server