Configuration of local sources under Linux

Source: Internet
Author: User

creating a local source in Linux

The author vast is here.

in vm midpoint Open "Virtual machine" ----à " cd/dvd< Span style= "font-family: ' The song Body '; > ( sata----à iso image file ----à Span style= "font-family: ' The song Body '; > "browse (find the current Linux version Iso file)" ----à -- --à "OK"

Cd/media/rhel_ behind is the version number of the mount image If the path is complete, congratulations on the image mount results, if not the first step in re-examination

Ls will see the Packages repodata two folders

Mkdir/home/repo Create a Repo folder under the path where you like to store things

Cp–r–f Packages/home/repo

Cp–r–f Repodata/home/repo Copy the contents of the two folders into this folder (the process may be slow, but the normal phenomenon is that the rpm package has more than 3G)

cd/etc/yum.repo/ This is the default source storage path

The default redhat.repo and Rhel-source.repo of the Ls initial write can be based on Rhel-source.repo Modify the file information in the

Cat Rhel-source.repo >> Haohaoge.repo Append file contents to my vast this source file

Vim Haohaoge.repo The following is the content information for the local source file

[Haohaoge.repo]

Name=haohao.repo

Basecurl=file:///home/repo

Enabled=1

Gpgcheck=0

There is also a direct creation of the FTP service after the source files are stored on the FTP server

Vim Haohaoge.repo The following is the content information for the local source file

[Haohaoge.repo]

Name=haohao.repo This is the name of the current local source

Basecurl=ftp://192.168.18.112/pub/repo here indicates where the source file is on that IP server.

Enabled=1 This option indicates that the source defined in this repo is enabled and0 is disabled

Gpgcheck=0 1 Yes,0 indicates that the rpm downloaded in this repo will be checked for GPG to determine the effective and secure RPM package

Yum Clean All

Yum Update


This article from "vast brother" blog, declined reprint!

Configuration of local sources under Linux

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.