Re: Idea for createrepo
seth vidal <[email protected]>
| Newsgroups | gmane.linux.rpm.metadata |
|---|---|
| Message-ID | <1201763300.27307.30.camel@cutter> |
On Tue, 2008-01-15 at 11:05 +1100, John Newbigin wrote: > seth vidal wrote: > > > On Tue, 2008-01-15 at 09:37 +1100, John Newbigin wrote: > > > >>If I could write the metadata to the filesystem then I can combine the > >>files with the DVD contents using web server magic and turn the > >>directory into a yum repository. > >> > >>In short I want to run something like this: > >>createrepo -o . http://localhost/centos/iso/4.5/RPMS/ > >> > >>Does that explain it? > >> > >>John. > > > > > > Yes, that does explain it. The only hang up is we'll have to > > download/read all of the rpms on the remote site in order to produce the > > repodata. Is that something you're okay with? > That is OK. I only want to use it on the localhost. I am not sure how > useful it would be on remote sites. > so if you're okay downloading all the files to local, why not just rsync the files down, run createrepo with the --baseurl option, then use the repodata from wherever you want, all pointing back to the original mirror? -sv