[tools] mrepo on a low bandwidth connection
Hristo Benev
hristo.benev at waveroad.ca
Mon Jan 8 15:26:43 CET 2007
Dag Wieers wrote:
> On Wed, 3 Jan 2007, Hristo Benev wrote:
>
>
>> Ashish Shukla wrote:
>>
>>
>>> I want to know if 'mrepo' is suitable for low bandwidth connections i.e.
>>> those users
>>> who don't want to mirror complete repositories. The similar kind of
>>> application for
>>> Debian is 'apt-cacher'. Whenever any client requests comes to 'apt-cacher'
>>> it simply checks
>>> if package is in the cache, serve it else download it. So, the client who
>>> downloads the
>>> packages first will suffer some delay (since downloading from the main
>>> repository), rest
>>> of users won't notice any delay (since package is already downloaded).
>>>
>>> apt-cacher
>>> http://www.nick-andrew.net/projects/apt-cacher/
>>>
>>> So does mrepo also works in this way ?
>>>
>>> I've not tried it yet.
>>>
>>
>> As far as I know mrepo does not work in this way.
>>
>> It creates a local mirror of on or several repositories.
>> So if you have more than one system it is not required to transfer any
>> package more than once.
>> It is not required that you are connected to internet to do this, if you
>> have broadband elsewhere you can copy repo to usb drive and transfer it
>> to other location without i-net. (this requires modification into scripts)
>>
>
> You're correct in most of the assessement.
>
> I'm simply wondering what kind of modification is necessary to transfer it
> without internet ? I'm not sure I understand what you mean.
>
> What I do is have the mrepo config-file on my USB disk and point to the
> mountpoint of the USB disk inside this config-file. As a result I only
> need mrepo installed on the system and the USB disk to move between 2
> systems (one Internet-connected and one Internet-less).
>
> Before unplugging, I do:
> mrepo --umount -c /path/to/usbdisk/mrepo.conf
>
> After plugging in with internet, I do:
> mrepo -ug -c /path/to/usbdisk/mrepo.conf
>
> After plugging in without internet, I do:
> mrepo -g -c /path/to/usbdisk/mrepo.conf
>
>
This is the modification needed --> only to remove the cron job, which
is installed by default (If I remember correctly) and do it manually.
> Maybe a nice dbus-plugin could take care of things. Or a cron-job could as
> well.
>
> Kind regards,
> -- dag wieers, dag at wieers.com, http://dag.wieers.com/ --
> [all I want is a warm bed and a kind word and unlimited power]
>
Sorry if it was not clear.
--
Hristo Benev
IT Manager
WAVEROAD
Partners in Telecommunications
514-935-2020 x225 T
514-935-1001 F
www.waveroad.ca
hristo.benev at waveroad.ca
More information about the tools
mailing list