To create a local Yum source with a disc image

Source: Internet
Author: User
Tags gpg yum repolist

Before installing Oracle, you need to configure your system environment, you need to install a lot of RPM packages (take Redhat Linux as an example), it is cumbersome to manually install RPM, and you need to manually resolve dependencies between packages. Yum is a good solution.

The problem, the Yum source has three local Yum repository, FTP Yum Repository, and HTTP Yum repository. The configuration of the FTP Yum repository is described in more detail in subsequent articles. The HTTP Yum Repository configuration method is similar to the local Yum and is no longer described here, this article only describes the configuration process for the local Yum repository.

The configuration process for the local Yum repository (this article takes CDROM for example) 1. To mount a disc to a local

Create a mount point and mount the disc at the Mount point

# mkdir-p/media/cdrom

# Mount/dev/cdrom/media/cdrom 2. Disable the old Yum configuration file

Under directory/etc/yum.repos.d/, edit all Yum configuration files and disable all features of these profiles by setting enabled=0 3. Create Yum configuration files such as the following:/ETC/YUM.REPOS.D /yum.repo)

[Server]
name= linux yum install for oracle              --name Description Information
baseurl=file:///media/cdrom/server          --yum Library location, Note that you want to use 3 slashes
Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key
gpgcheck=0                                                --0 means no checksum, 1 means checksum
enabled=1                                                  --0 means disabled, 1 is enabled, and countless values enable

by default

If you have more than one library, write the libraries in the format listed above in this configuration file .

4. Clear Yum Cache

#yum Clean All

5. Yum Installation Test

# Yum Repolist--Displays the available Yum libraries
Loaded Plugins:rhnplugin, security
This system is not registered with RHN.
RHN support would be disabled.
Server | 1.3 KB 00:00
Repo ID repo Name Status
Server Linux yum Install for Oracle enabled:3,116
repolist:3,116

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.