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