Re: [CentOS] yum repository and createrepo

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Thanks, that's what I needed.  I added the line to my cron job to
regenerate the headers after an rsync with the mirror.  I guess I
could exclude the 'repodata' subdiretory on the rsync and save about
3Mb of bandwidth.  Either way, I think I'm set now, thanks again.

Ken

On 10/18/06, Akemi Yagi <ayagi@xxxxxxxxxxx> wrote:
*Ken Leyba wrote:*

>I've setup a local yum repository for about 25 workstations and I'm
>using rsync from a local mirror.  Do I need to create my own XML
>headers, i.e. the 'repodata' directory, or since I'm syncing the whole
>updates directory can I use the 'repodata' directory from the mirror?

Yes, that should be fine if you rsync the whole thing.

>I also have a question on using createrepo.  The directory layout is:
>
>~/updates/
>~/updates/headers/
>~/updates/repodata/
>~/updates/RPMS/
>
>If I do the following in the 'updates' directory:
>
># createrepo -v ./RPMS
>
>The 'repodata' diretcory is created under the 'RPMS' directory and not
>the current 'updates' directory.  How can I have the 'repodata'
>directory created/updated in the correct directory under 'updates'?

You need to run |createrepo| against the directory under which you want
the |repodata| directory to appear.  In your case run:

createrepo ~/updates



_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos



--
Ken Leyba
http://www.kenleyba.com
"I've had a perfectly wonderful evening. But this wasn't it." -Groucho Marx
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux