Build a Yum repository on a Linux server

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.