[tools] createrepo after mrepo?

Dag Wieers dag at wieers.com
Wed Oct 3 19:02:52 CEST 2007


On Wed, 3 Oct 2007, John Lee wrote:

> Is it a good idea to run createrepo after running mrepo -guvvv?
>
> For example, I have "mrepo -gu centos5" in my crontab but I'm wondering
> if I should add "createrepo /path/to/centso4/repository/" immediately
> following my mrepo command?
>
> The reason being I though mrepo would mirror everything including the
> metafiles, but sometimes my users complain of 'checksum mismatch' errors
> and I have to run createrepo manually on a particular repository.

If configured properly, createrepo is run by mrepo.

The -u flag causes mrepo to download new packages to /var/mrepo/

The -g flag causes mrepo to recreate the symlinks and metadata in
/var/www/mrepo/

So there should not be a reason for running createrepo yourself.

The problem with checksum mismatch with yum seems to be caused by yum
itself. A yum clean <something> fixes the problem. What the reason is of
these checksum mismatches is unknown, I guess you better report these on
the yum mailinglist.

-- 
--   dag wieers,  dag at wieers.com,  http://dag.wieers.com/   --
[Any errors in spelling, tact or fact are transmission errors]


More information about the tools mailing list