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

Re: apt-get wrapper for maintaining Partial Mirrors



Frank Lin PIAT <fpiat@klabs.be> writes:

> On Tue, 2009-06-09 at 16:16 -0500, Joseph Rawson wrote:
>> On Tuesday 09 June 2009 13:14:53 sanket agarwal wrote:
>> > This can be stated as: if a person
>> > wants to keep a customised set of packages for usage with the
>> > distribution, the tool should be able to develop dependencies, fetch
>> > packages, generate appropriate documentation and then create the
>> > corresponding directory structure in the target mirror! The task can
>> > be extended to include packages which are currently not under one of
>> > the standard mirrors!
>
> <lazy-way>
> One don't have to merge the repositories, one can just declare multiple
> sources in /etc/apt/*
> </lazy-way>

Lets say I want to mirror xserver-xorg from experimental. Then I would
want it to include xserver-xorg-core (>= xyz) also from experimental
as the dependency dictates but not include libc6 from experimental as
the sid one is sufficient.

A key point here would be flexibility.

>> > I think the tool can have immense utility in helping people automate
>> > the task of mantaining the repositories. Suggestions, positive and
>> > negative are invited.
>> >
>> > I have not included the impl details as I would first like to evaluate
>> > the idea at a feasibility and utility level.
>
> If the scope of your project includes being able to bootstrap systems
> from the mirror, resolving dependency is much more complex (some
> packages aren't resolved by dependencies. For instance, the right kernel
> is select by some logic in Debian-installer).
> I found some interesting logic in debian-cd package.

You would include "linux-image-<type>" in your package list. That
isn't really a problem of the tool. Just of the input you need to provide.
Also you would include everything udeb and everything
essential/required for bootstraping purposes.

Again flexibility is the key.

> Still, I don't consider that allowing bootstrapping is mandatory. Your
> project would still be extremely valuable without it. [for those 95% of
> the people that install from CD, as opposed to netboot].
>
> Regards,
>
> Franklin

MfG
        Goswin

PS: the essential/required packages can already easily be filtered
with grep-dctrl.


Reply to: