Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#31303 - Aliases for getting an updated mirror list (with example)

Attached to Project: Arch Linux
Opened by Andrew (DSpider) - Monday, 27 August 2012, 10:12 GMT
Last edited by Evangelos Foutras (foutrelis) - Saturday, 01 September 2012, 15:05 GMT
Task Type Feature Request
Category System
Status Closed
Assigned To Pierre Schmitz (Pierre)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

I'd like to request that these aliases (or some form of them) are added in /etc/bash.bashrc on the next release. Maybe renamed something that matches the "genfstab" command? Something like "genmirror", "genmirrorlist".

HTTP was filtered from the Mirrorlist Generator (http://www.archlinux.org/mirrorlist/). See the tip from here on why HTTP: https://wiki.archlinux.org/index.php/Beginners%27_Guide#Select_installation_mirror


Aliases:

mirror() {
curl "http://www.archlinux.org/mirrorlist/?country=$1&protocol=http" > /etc/pacman.d/mirrorlist
nano /etc/pacman.d/mirrorlist
}

mirrorspeed() {
curl "http://www.archlinux.org/mirrorlist/?country=$1&protocol=http&use_mirror_status=on" > /etc/pacman.d/mirrorlist
nano /etc/pacman.d/mirrorlist
}

Usage:

# mirror FR
# mirrorspeed IT

Observation: The country need to be capitalized, and the user needs to uncomment one (or several) mirrors.


Thank you.
This task depends upon

Closed by  Evangelos Foutras (foutrelis)
Saturday, 01 September 2012, 15:05 GMT
Reason for closing:  Deferred
Additional comments about closing:  Discussion and/or patches can go to http://mailman.archlinux.org/mailman/lis tinfo/arch-releng
Comment by Andrew (DSpider) - Tuesday, 28 August 2012, 11:32 GMT
Come to think if it, the live environment doesn't use Bash, does it? I don't know what the ZSH equivalent of /etc/bash.bashrc is.

And technically speaking, they're functions, not aliases.

Loading...