You are not logged in.

#1 2010-02-06 23:06:08

shpelda
Member
Registered: 2008-08-07
Posts: 59

[solved]pacman mirrorlist wrapper?

Hello everyone.

Is out there some pacman wrapper that walks through an ordered list of mirrors to download a package from a  mirror where particular package is available ?

Last edited by shpelda (2010-02-12 14:05:52)

Offline

#2 2010-02-06 23:13:02

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,362

Re: [solved]pacman mirrorlist wrapper?

Every mirror has every package. I assume you mean package VERSION. In that case, just head over to schlunix or something like that. Check the wiki or dowgrading packages.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#3 2010-02-07 07:33:59

shpelda
Member
Registered: 2008-08-07
Posts: 59

Re: [solved]pacman mirrorlist wrapper?

Yes, I mean "package version". But it's not problem of downgrading packages.
I am getting annoyed 'my mirror' out of sync.  If I Syu, i get a fresh list of actual package versions, but those are not (yet) on mirror.
So, update fails.
I am looking for something that will allow pacman to try 'my mirror' and if package version is not there then use some 'backup mirror'(maybe schlunix).

Last edited by shpelda (2010-02-07 07:36:08)

Offline

#4 2010-02-07 08:29:00

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: [solved]pacman mirrorlist wrapper?

Umm...  pacman does that automatically.  Just enable multiple mirrors in /etc/pacman.d/mirrorlist

Offline

#5 2010-02-07 08:34:12

Meyithi
Member
From: Wirral, UK
Registered: 2009-06-21
Posts: 550
Website

Re: [solved]pacman mirrorlist wrapper?

Make another pacman.conf, change the mirrorlist, then run a script that calls reflector which you'll need to install.

#!/bin/bash

abs

reflector -l 5 -f 2 -o /etc/pacman.d/mirrorlist-full
pacman -Syyu --config /etc/pacman-full.conf

exit 0

That's what I use if I can't wait for my mirror to sync, bear in mind that will do a full system upgrade and sync up ABS as well.

Quite possibly a horrible script, posted for inspiration to make your own!


The mind roams more freely in empty rooms.
dwm - colours - ncmpcpp - system
irc://irc.freenode.net:meyithi

Offline

#6 2010-02-07 11:06:28

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [solved]pacman mirrorlist wrapper?

If your chosen mirror is usually out of sync, stop using it and pick one or more reliable mirrors instead using the information provided here. If you want to automate this, use reflector.

I have had the same five manually-selected mirrors at the top of my mirrorlist for years, and I hardly ever have sync issues. If I do, they don't last more than a few hours.

Offline

#7 2010-02-12 14:07:03

shpelda
Member
Registered: 2008-08-07
Posts: 59

Re: [solved]pacman mirrorlist wrapper?

solved. thanks.

Offline

Board footer

Powered by FluxBB