Warning: file_exists(): open_basedir restriction in effect. File(/srv/http/vhosts/aur.archlinux.org/public/web/locale//en/LC_MESSAGES/aurweb.mo) is not within the allowed path(s): (/srv/http/vhosts/aur-dev.archlinux.org/:/etc/aurweb/) in /srv/http/vhosts/aur-dev.archlinux.org/public/web/lib/streams.php on line 90
AUR (en) - update-pacman-mirrorlist

Notice: Undefined variable: name in /srv/http/vhosts/aur-dev.archlinux.org/public/web/lib/pkgfuncs.inc.php on line 248

Package Details: update-pacman-mirrorlist 20160526-1

Git Clone URL: https://aur-dev.archlinux.org/update-pacman-mirrorlist.git (read-only)
Package Base: update-pacman-mirrorlist
Description: Automatically updates the pacman mirrorlist.
Upstream URL: https://aur.archlinux.org/packages/update-pacman-mirrorlist/
Licenses: custom:public domain
Submitter: sushidude
Maintainer: sushidude
Last Packager: sushidude
Votes: 33
Popularity: 1.270784
First Submitted: 2015-05-14 04:42
Last Updated: 2016-05-26 04:46

Pinned Comments

sushidude commented on 2016-02-04 11:36

Guide for new users:

update-pacman-mirrorlist can be configured with the /etc/update-pacman-mirrorlist file to download from any accessible URL. It defaults to the official Pacman Mirrorlist Generator. However, for optimal download speed it is recommended that mirrors located near your computer’s physical location on the network are used.

For example, to only output mirrors that are located in the United States, change https://www.archlinux.org/mirrorlist/?use_mirror_status=on&protocol=https to https://www.archlinux.org/mirrorlist/?use_mirror_status=on&protocol=https&country=US in the /etc/update-pacman-mirrorlist configuration file.

There are two modes of operation:
Manually through GNU style command line arguments. Run `man update-pacman-mirrorlist` for more information.
and/or
Automatically through a systemd timer to update the mirrorlist daily. More information on this is provided upon installation.

Pull requests, issue reports, and comments should be posted in this comment section or emailed to the maintainer.

Latest Comments

1 2 Next › Last »

sushidude commented on 2016-05-26 04:46

Be aware that the new version released today removes the backup functionality.

You can remove the backup mirrorlist (defaults to /etc/pacman.d/mirrorlist.backup) if you want.

sushidude commented on 2016-05-22 05:14

Would anyone be upset if I removed the backup feature? I can't really think of a scenario where it would be particularly useful and I have never had to use it myself.

sushidude commented on 2016-03-19 07:10

@Zepherios
The timer does not need a randomized delay. Also, now that I think about it, AccuracySec does not need to be set either.

Zepherios commented on 2016-03-15 10:23

The systemd.timer unit should have AccuracySec=12h replaced by RandomizedDelaySec=12h, AccuracySec never worked past 1 min.

sushidude commented on 2016-02-04 11:36

Guide for new users:

update-pacman-mirrorlist can be configured with the /etc/update-pacman-mirrorlist file to download from any accessible URL. It defaults to the official Pacman Mirrorlist Generator. However, for optimal download speed it is recommended that mirrors located near your computer’s physical location on the network are used.

For example, to only output mirrors that are located in the United States, change https://www.archlinux.org/mirrorlist/?use_mirror_status=on&protocol=https to https://www.archlinux.org/mirrorlist/?use_mirror_status=on&protocol=https&country=US in the /etc/update-pacman-mirrorlist configuration file.

There are two modes of operation:
Manually through GNU style command line arguments. Run `man update-pacman-mirrorlist` for more information.
and/or
Automatically through a systemd timer to update the mirrorlist daily. More information on this is provided upon installation.

Pull requests, issue reports, and comments should be posted in this comment section or emailed to the maintainer.

sushidude commented on 2016-01-08 13:07

@vorbote
>You really want to provide the files in an external provider, such as github, bitbucket, even dropbox will do.
No, I really do not. What advantage would that bring? It would most certainly over complicate the PKGBUILD and management of the project, introduce additional potential for downtime, and require another trusted party to host code.

>AUR is not a hosting service[1].
>[1] See item 4 here: https://wiki.archlinux.org/index.php/Arch_User_Repository#Rules_of_submission
You are misinterpreting that rule. What it means is that PKGBUILDs should build projects from source if possible.

>Discussions in [aur-general] have always concluded that shell script *is* a binary.
Except shell script is not binary. What the discussions in [aur-general] have concluded are not only factually incorrect but also irrelevant.

>Furthermore, if you provide your files in an external git repository, you are in the position of accepting patches and merge requests implementing the functionality people are already asking for in the comments below.
I am already in the position of accepting patches and merge requests through email and this comment section.

Unless someone can present a set of actually applicable advantages that out weigh the disadvantages, I will not change the current hosting.

vorbote commented on 2016-01-08 12:06

You really want to provide the files in an external provider, such as github, bitbucket, even dropbox will do. AUR is not a hosting service[1]. Discussions in [aur-general] have always concluded that shell script *is* a binary. Furthermore, if you provide your files in an external git repository, you are in the position of accepting patches and merge requests implementing the functionality people are already asking for in the comments below.


[1] See item 4 here: https://wiki.archlinux.org/index.php/Arch_User_Repository#Rules_of_submission

lahwaacz commented on 2015-12-04 10:00

@sushidude I haven't asked to do the filtering locally, but to provide easier way to set parts of the query string (e.g. countries and protocols). I would not call modifying the entire URL via command line argument an abstraction, but a limitation. That said, using the config file, which I originally missed, is probably fine and convenient enough...

sushidude commented on 2015-12-03 23:52

@lahwaacz
>Why don't you provide an option to set the country at runtime, to make it truly better [1]?.
You can effectively do this with `update-pacman-mirrorlist -r URL`. I will update the wiki to explain this later.

>While you're at it, selecting the protocols would also be useful
As I have said in previous comments, countries and protocols are abstract concepts. All this script does is download and install the mirrorlist with some basic sanity checking leaving the work of sorting to the server. It is the Arch Linux Pacman Mirrorlist Generator server which provides options to filter by country and protocol via query strings.

lahwaacz commented on 2015-12-03 19:53

The wiki says:

While the default settings are optimal for the majority of users, the mirrorlist output can be changed via query strings to the server. For example, to only output mirrors that are located in the United States, change https://www.archlinux.org/mirrorlist/?use_mirror_status=on&protocol=https to https://www.archlinux.org/mirrorlist/?use_mirror_status=on&protocol=https&country=US in the /etc/update-pacman-mirrorlist configuration file.

Why don't you provide an option to set the country at runtime, to make it truly better [1]? While you're at it, selecting the protocols would also be useful.

[1] https://wiki.archlinux.org/index.php?title=Mirrors&diff=391789&oldid=391787