RHEL7.0 configure CD-ROM as local YUM

Source: Internet
Author: User
Tags yum repolist

RHEL7.0 configure CD-ROM as local YUM

By default, no yum source exists in the initial installation of RHEL7.0. mount a local DVD to/mnt/cdrom and connect the system yum source to/mnt/cdrom.

# Use yum-config-manager to generate a source file template
[Root @ server0 yum. repos. d] # yum-config-manager -- add-repo = cdrom
Loaded plugins: langpacks, product-id
Adding repo from: cdrom

[Cdrom]
Name = added from: cdrom
Baseurl = cdrom
Enabled = 1

# Edit the generated template as follows:
[Root @ server0 yum. repos. d] # cat cdrom. repo

[Cdrom]
Name = DVD Media
Baseurl = file: // mnt/cdrom
Enabled = 1

# Attaching CDROM
[Root @ server0 yum. repos. d] # mount/dev/cdrom/mnt/cdrom/
Mount:/dev/sr0 is write-protected, mounting read-only

# Import RPM-GPG-KEY
[Root @ server0 yum. repos. d] # rpm -- import/etc/pki/rpm-gpg/RPM-GPG-KEY-RedHat-xxxx

# View
[Root @ server0 ~] # Yum repolist
Loaded plugins: langpacks, product-id, submodules-manager
This system is not registered to Red Hat sub‑management. You can use sub‑manager to register.
Repo id repo name status
Cdrom, DVD Media 4,305
Repolist: 4,305

 

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

 

Related Article

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.