I keep a local copy of the yum repository using rsync every night. Commands like "yum update" still work, but lately I've been getting the following error:
# yum grouplist Setting up Group Process Setting up repositories Error: Caching enabled and local cache: //var/cache/yum/base/ yumgroups.xml does not match checksum
My nightly rsync cron job doesn't update this file -- should it? How does one rebuild it? To set up my local repository, I edited the file /etc/yum.repos.d/CentOS-Base.repo and changed all baseurl entries to use file:///path/to/my/repo instead of http:// mirror.centos/org/... Do I have something misconfigured?
Thanks, Alfred
On Fri, May 19, 2006 at 10:32:59AM -0400, Alfred von Campe wrote:
Error: Caching enabled and local cache: //var/cache/yum/base/ yumgroups.xml does not match checksum
you may need to rerun this command as root, or at least sudo. i recall seeing something like this on another thread
you may need to rerun this command as root, or at least sudo. i recall seeing something like this on another thread
Argh, that was it! I usually have a root window open and run all yum commands in it, but I happened to run this as a normal user. Running "yum grouplist" as root does indeed "fix" the problem.
Alfred
On Fri, 2006-05-19 at 10:32 -0400, Alfred von Campe wrote:
I keep a local copy of the yum repository using rsync every night. Commands like "yum update" still work, but lately I've been getting the following error:
# yum grouplist Setting up Group Process Setting up repositories Error: Caching enabled and local cache: //var/cache/yum/base/ yumgroups.xml does not match checksum
My nightly rsync cron job doesn't update this file -- should it? How does one rebuild it? To set up my local repository, I edited the file /etc/yum.repos.d/CentOS-Base.repo and changed all baseurl entries to use file:///path/to/my/repo instead of http:// mirror.centos/org/... Do I have something misconfigured?
Thanks, Alfred
OK ... yum caches metadata ... so for a period of time there is a file in cache that MIGHT be different (if there are changes on the mirror).
You should start with this if you have that problem:
yum clean metadata
However ... this sounds like a different problem because ... yumgroups.xml never really changes, except when we release a new ISO.
Are you rebuilding your metadata with createrepo ... if you are, are you using the -g option?
On May 19, 2006, at 11:01, Johnny Hughes wrote:
OK ... yum caches metadata ... so for a period of time there is a file in cache that MIGHT be different (if there are changes on the mirror).
You should start with this if you have that problem:
yum clean metadata
I'll try this next time.
However ... this sounds like a different problem because ... yumgroups.xml never really changes, except when we release a new ISO.
Are you rebuilding your metadata with createrepo ... if you are, are you using the -g option?
Nope, I don't use creatrepo; I just rsync the entire repo from one of the mirrors. Running "yum grouplist" as root updated the cached version of yumgroups.xml, and now everthing is in sync again.
Alfred