Red Hat7 version Local repository yum source configuration

Source: Internet
Author: User
Tags yum repolist

1. commands to be executed

Mkdir/dvd: Create a directory because the mount point must be a directory

MOUNT/DEV/SR0/DVD: Mounting

Df-h: Check to see if it is mounted on

Vim/etc/yum.repos.d/rhel-dvd.repo: Write a configuration file for the Yum source

Yum Repolist: Take a look at the local warehouse information.

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/81/F3/wKiom1dGNZHCq8pPAACFi6UJl2U644.png "title=" Qq20160526073016.png "alt=" Wkiom1dgnzhcq8ppaacfi6ujl2u644.png "/>

Write config file:

[Rhel-dvd]

Name=dvd

Baseurl=file:///dvd


Gpgcheck = 0: Do not check for signatures

Enable = 1: Enables the current warehouse

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/81/F1/wKioL1dGN4iQqaWjAAAmVtNkZf4335.png "title=" Qq20160526073425.png "alt=" Wkiol1dgn4iqqawjaaamvtnkzf4335.png "/>


Note: (1). /dvd must have a mirror, you can take a U disk copy an image file, or virtual machine---set->cd/dvd-> browse---copying, pasting, (from the physical machine to get an iOS image file): Stick over the store in/tmp, using the Find command found can!

Under Move to/dvd.

(2). Each time you re-enter the terminal, you must re-mount it to install the package.


2. Yum Install package: can resolve dependencies.

Yum Install GCC installation GCC development tools

The Yum install gcc-y/yum install-y gcc installation process is not prompted for direct installation.

Yum Remove gcc removal gcc

Hint message:-D only download not installed


The best way to install the software is to use the Yum install *vnc* to match the installation better, and all the relevant is installed.

Ubuntu is an open source Linux operating system, using the APT command to install the tool, do not configure the local warehouse, when installing the software but must be networked, directly from the official website download!



Red Hat7 version Local repository yum source configuration

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.