manjaro / pacman-mirrors

This repo has been archived. Our code is now hosted at
https://gitlab.manjaro.org
GNU General Public License v3.0
25 stars 16 forks source link

Temporarily using a repo to get update fast (feature request) #101

Closed Mazino-Urek closed 7 years ago

Mazino-Urek commented 7 years ago

Every manjaro repo has different synchronization time. Sometimes it takes more time than usual. Now we can temporarily use a branch to test a package or update first. but it would be nice to just a repo address to get the update first.

fhdk commented 7 years ago

You can use the

sudo pacman-mirrors -b unstable -f 1 -u
sudo pacman -S package
sudo pacman-mirrors --geoip -u

This will give 1 up-to-date on all branches mirror and cause pacman to update your databases

Mazino-Urek commented 7 years ago

I have updated my system using -c option. I can't get it out until next testing update hits the repo. The only 4 server had synchronized with testing and I wanted to use one to update the packages. I will try your method in the next update.

fhdk commented 7 years ago

If you know the package - you can look it up the complete package on the mirror in question and install it with pacman -U - here is pacman-mirrors as example

sudo pacman -U http://repo.stdout.net/manjaro/testing/core/x86_64/pacman-mirrors-4.1.3-1-any.pkg.tar.xz

or you can download it to your downloads folder by clicking the package name and do

sudo pacman -U packagename-version-number

Of course there can be dependencies which I have not considered in above scenario

Mazino-Urek commented 7 years ago

This is useful for one package but not a whole the testing batch phlim dumps. For now I think the perfect solution is to use a country whose all server is synchronized to get the update first. Besides not a lot of people cares whether they get update couple of hours late or not. You can close the issue.

fhdk commented 7 years ago

thanks :+1:

@now-im By the way - The -u switch mentioned is changing to -y in the next version