Local yum repo issue

Issues related to applications and software problems
Post Reply
hema.arun
Posts: 21
Joined: 2017/02/06 11:56:26

Local yum repo issue

Post by hema.arun » 2017/04/17 08:26:46

I have set up a local yum repo server for "CentOS 6 and 7 OS" on a "CentOS 7" server. The repo server is syncing from public yum on a daily basis and the Linux client servers (my other linux servers having no internet access) are synced from this local yum repo server. This setup has been working fine, since few months, but now an issue started that the clients are not syncing with the local yum repo server.

From the public yum, my yum repo server has fetched all the packages. Say for example, the latest available kernel "kernel-3.10.0-514.16.1.el7.x86_64.rpm" is present in my yum repo server. But, the client servers fetching packages from my repo server doesn't find this particular kernel package.

I tried "yum clean all". Removing cache folders in "/var/cache/yum". Still the particular kernel package is not listed as below:
# yum list |grep kernel.x86_64

kernel.x86_64 3.10.0-327.el7 @anaconda
kernel.x86_64 3.10.0-514.el7 @localyum
kernel.x86_64 3.10.0-514.2.2.el7 @localyum
kernel.x86_64 3.10.0-514.6.2.el7 @updates
kernel.x86_64 3.10.0-514.10.2.el7 @updates
Kindly advice

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: Local yum repo issue

Post by aks » 2017/04/18 17:00:06

Did you remember to run createrepo --update after getting the new files (to generate the repo metadata)?

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Local yum repo issue

Post by TrevorH » 2017/04/18 19:39:26

Or better, rsync the entire repo and then you don't have to run createrepo (which takes a long time).

Don't attempt to mix the el6 and el7 repos, keep them in separate directories.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

hema.arun
Posts: 21
Joined: 2017/02/06 11:56:26

Re: Local yum repo issue

Post by hema.arun » 2017/04/19 04:05:27

I tried "createrepo --update". Now the packages are reflecting. I put a cron job to update this daily.

rsync is blocked by our proxy settings in the environment. EL6 and EL7 repos are in different folder

Post Reply