1. copy the content in RHEL6 to a folder/yum. 2. install the following rpm packages: createrepo, yum-updatesd, yum-utils, and vsftpd3. run the command to generate the package dependency: createrepo/yum4, client yum configuration file [MailRepo] nameCentosbaseurlf...
1. copy the content in RHEL 6 to a folder/yum.
2. install the following rpm packages: createrepo, yum-updatesd, yum-utils, vsftpd
3. run the createrepo/yum command to generate the package dependency.
4. client yum configuration file
[MailRepo]
Name = Centos
Baseurl = file: // yum
Enabled = 1
Gpgcheck = 0
The above is a local yum server. if you use ftp for yum installation, you need to install vsftp on the server and put the path of the rpm package into the vsftpd configuration file. In the client configuration, the baseurl parameter value is ftp: // PATH
From hwylxf's BLOG