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

Re: Converting regular redhat mirrors to apt repository (virtually)



Gordon Messmer wrote:

On Mon, 2003-02-10 at 19:58, Mark wrote:

The existing regular redhat mirrors out there are a) many and b) in some cases are connected to huge pipes ( like redhat.newaol.com). The apt repositories are few and this is especially true for phoebe and rawhide (so far). To take advantage of the existing infrastructure has anyone given much thought as to how to locally put some kind of hack on apt-get to allow it to point at the regular mirrors so that they appear as virtual apt repositories?

You'd have to maintain your own mirror of the files on the remote server
you wanted to make apt-get'able, but it might work.

If you kept an up to date mirror and generated the apt indexes for it,
you could then put .htaccess files in the RPMS.<module> and
SRPMS.<module> directories to redirect clients to the proper locations. I think they'd look like this:

RewriteEngine on
RewriteRule ^(.*) http://redhat.newaol.com/pub/$1

(Not sure what the URL is on redhat.newaol.com... I can't find the
mirror there...)

The apt clients would initially connect to you to request the package,
and your web server would issue a 301 HTTP redirect.
...

Good idea, thanks. However my point was to use an _existing_ mirror and it looks like I have the following working thanks to lufs:

1. Set up a local mount a point in the apt format, ie, ../redhat/RPMS.<module>. Maybe link this into your web servers root path.
2. Point at the mirror:
mount -t lufs ftp://somemirror.path.RedHat.RPMS ../redhat/RPMS.<module> -o someoptions
3. Run genbasedir --bloat --progress <localpath> against the local mount point. 4. Add #3 as weekly or daily cron job.

Then point ../apt/sources.list at this mount point and you have a virtual apt repository based on existing redhat rpm mirror. Of course genbasedir takes a bit longer than running against a real local tree but nothing like the time to download the entire mirror. LUFS (lufs.sourceforge.net/lufs) is necessary until we get url support in genbasedir. Also I expect that, without cooperation from the mirror admin, its inevitable that when the remote mirror updates this will be broken until the cron job runs again.

-Mark





--
Phoebe-list mailing list
Phoebe-list@redhat.com
https://listman.redhat.com/mailman/listinfo/phoebe-list

[Home]     [Kernel List]     [Red Hat Install]     [Red Hat Watch List]     [DVD Store]     [Red Hat Development]     [Gimp]     [Yosemite News]

Powered by Linux