RedHat 7 configure local yum Source

Source: Internet
Author: User

RedHat 7 configure local yum Source

In this article, the local yum source is configured to copy the content of the RedHat 7 system disk to the/RH7ISO directory of the server hard disk, and then configure yum to point to this directory. First, mount the optical drive to the/mnt Directory: mount/dev/cdrom/mnt

Copy the content of the system disk to the/RH7ISO Directory: cp-R/mnt/* RH7ISO

Go to the yum configuration Directory: cd/etc/yum. repos. d/

Create a yum configuration file: touch rh7ISO. repo

Edit the configuration file and add the following content: vi rh7ISO. repo

Clear yum cache: yum clean all

Cached package information in the local yum Source: yum makecache

Configuration complete! You can directly use yum install packname to install yum!

For more YUM tutorials, see the following:

RedHat 6.2 modify yum source in Linux use CentOS source for free

Configure the epel yum Source

Redhat local yum source configuration

Description of yum configuration file

Install yum in RedHat 6.1)

YUM installation and cleaning

Build yum local source on CentOS 6.4

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.