You are not logged in.

#1 2014-11-11 09:03:29

si_kabayan
Member
Registered: 2014-04-01
Posts: 10

[SOLVED] Questions about delta mirror/package

My bandwidth is slow and expensive so i use delta package as per this Arch Wiki.
But, for anumber of reasons the delta mirror only provide small number of delta package, and it's geographically far away from where i live so it's kind of slower.

Here's my /etc/pacman.d/mirrorlist:

Server = http://suro.ubaya.ac.id/archlinux/$repo/os/$arch
Server = http://delta.archlinux.fr/$repo/os/$arch

First line is nearest Arch mirror dan second line is delta package mirror.
What i want to achieve with that mirrorlist is Arch download update with delta package if available, if there is no delta package avalaible for that update then Arch will download regular package from the nearest mirror.

Thanx smile

EDIT: Solved it, well, kind of ...
I end up created a script for update.

#!/bin/sh

sed -i '/suro/s/^Server/#Server/' /etc/pacman.d/mirrorlist
pacman -Syy
sed -i '/suro/s/^#Server/Server/' /etc/pacman.d/mirrorlist
pacman -Su

Last edited by si_kabayan (2014-11-13 05:47:29)

Offline

#2 2014-11-11 12:04:30

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Questions about delta mirror/package

Pacman uses the first working (on-line) mirror from the mirrorlist, so I think the delta mirrors should come first.

Offline

#3 2014-11-11 22:36:43

si_kabayan
Member
Registered: 2014-04-01
Posts: 10

Re: [SOLVED] Questions about delta mirror/package

karol wrote:

Pacman uses the first working (on-line) mirror from the mirrorlist, so I think the delta mirrors should come first.

What do you mean with 'first working'? Is it the order of the mirror in mirrorlist or the time the mirror up online (established)

Offline

#4 2014-11-11 22:38:30

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Questions about delta mirror/package

I mean the order in the mirrorlist.

Offline

#5 2014-11-11 22:43:17

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,086

Re: [SOLVED] Questions about delta mirror/package

The order in mirrorlist is what matters.

pacman will ask the first uncommented mirror , if that has the info required pacman uses that mirror.
If the first uncommented mirror doesn't have the info or doesn't respond, pacman will try the next uncommented mirror


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#6 2014-11-11 22:51:11

si_kabayan
Member
Registered: 2014-04-01
Posts: 10

Re: [SOLVED] Questions about delta mirror/package

karol wrote:

I mean the order in the mirrorlist.

OK.

Lone_Wolf wrote:

The order in mirrorlist is what matters.

pacman will ask the first uncommented mirror , if that has the info required pacman uses that mirror.
If the first uncommented mirror doesn't have the info or doesn't respond, pacman will try the next uncommented mirror

Do you know if delta.archlinux.fr hosting only delta package or mirrorring all Arch package?
Because i just need delta package from this mirror, and regular package must from nearest mirror.

Offline

#7 2014-11-11 22:54:21

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,086

Re: [SOLVED] Questions about delta mirror/package

open http://delta.archlinux.fr  in any browser and you can see for yourself.

A quick peek suggest they have both delta and full packages


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#8 2014-11-11 22:54:23

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Questions about delta mirror/package

Have a look at e.g. http://delta.archlinux.fr/core/os/i686/ - I see standard packages too, not just deltas.

Offline

#9 2014-11-11 23:06:44

si_kabayan
Member
Registered: 2014-04-01
Posts: 10

Re: [SOLVED] Questions about delta mirror/package

That's mean all package will download from http://delta.archlinux.fr, if it doesn't have the info or doesn't respond, pacman would get from another mirror?
Then in my case, the local mirror is useless ....

Maybe i just need to create a screept or an alias to:

  1. uncheck delta.archlinux.fr in /etc/mirrorlist

  2. pacman -Sy

  3. check delta.archlinux.fr in /etc/mirrorlist

  4. pacman -Syu

Thanx for the answer smile, it's already 6AM in here, have to work ...

Offline

#10 2014-11-11 23:13:44

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Questions about delta mirror/package

Create aliases that use different configs pointing to different mirrors.

Offline

Board footer

Powered by FluxBB