Build a local Yum source for Fedora

Source: Internet
Author: User
Tags gpg mkdir

Although the latest version of Fedora is now 20, the company requires Fedora 12.

Foreign Yum source site speed is too slow, the domestic mirror (163,sohu) only Fedora17 after the image.

The solution is to create a local Yum source using the Fedora installation CD.


1) Copy files from CD to hard disk mkdir-p/back/soft/cp/media/fedora\ 12\ i386\ dvd/back/soft mv/back/soft/ Fedora\ 12\ i386\ Dvd/back/soft/fedora12
2) Configure local yum repository cd/etc/yum.repos.d mkdir ~/repos mv * ~/repos VI Fedora-iso.repo-------------- --------------------------------------------------------

[DVD]

Name=fedora-iso

baseurl=file:///back/soft/fedora12/

Enabled=1

Gpgcheck=0

Gpgkey=file:///back/soft/fedora12/rpm-gpg-key-fedora File:///etc/pki/rpm-gpg/RPM-GPG-KEY

--------------------------------------------------------------------------------


2) Configure finished

Can test install Samba server yum install Samba



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.