Fedora sets the DVD as the yum Source

Source: Internet
Author: User
If you cannot access the Internet after installing the Fedora system, you cannot use yum to install some software. In this case, you need to set the local yum source. You can copy the content on the DVD to the hard disk or mount it to a directory. In order to facilitate and save hard disk space, here we will talk about how to mount and set yum. 1. Mount the DVD $ su # mkdir/mnt/fedora-dvd # mount-tiso9660/dev/cdrom/mnt/fedora-

If you cannot access the Internet after installing the Fedora system, you cannot use yum to install some software. In this case, you need to set the local yum source. You can copy the content on the DVD to the hard disk or mount it to a directory. In order to facilitate and save hard disk space, here we will talk about how to mount and set yum.

1. mount a DVD

$ Su

# Mkdir/mnt/fedora-dvd

# Mount-t iso9660/dev/cdrom/mnt/fedora-dvd

(Note: Mount as needed)

2. Set yum

# Cd/etc/yum. repo. d/

# Cp fedora. repo dvd. repo

# Vim dvd. repo

Modify the content in the dvd. repo as follows:

[Fedora-dvd]

Name = Fedora DVD $ releasever-$ basearch

Baseurl = file: // mnt/fedora-dvd/

Enable = 1

Gpgcheck = 1

Gpgkey = file: // mnt/fedora-dvd/RPM-GPG-KEY-fedora

3. Now you can use

# Yum search git

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.