1. At /etc/yum.repos.d/, create a local repo, something like
# vim /etc/yum.repos.d/local.repo
2. Inside the /etc/yum.repos.d/local.repo,
[myrepo] name=My Local Repo baseurl=file:///home/user1/RPM enabled=1 gpgcheck=0
One more thing you may want to know is that the RPMs from the CentOS Disks including repomd.xml be copied into /home/user1/RPM
3. Disabled the rest of the Repo. For example,
# yum-config-manager --disable rpmforge
4. The Yum will pull from the enabled Repository only.
No comments:
Post a Comment