Artix Linux Forum

Artix Linux => System => Topic started by: RGGal on 26 January 2020, 07:17:08

Title: is there another option besides rankmirrors? [SOLVED]
Post by: RGGal on 26 January 2020, 07:17:08
sudo  rankmirrors -n 6 /etc/pacman.d/mirrorlist.backup > /etc/pacman.d/mirrorlist
bash: /etc/pacman.d/mirrorlist: Permission denied


i had renamed mirrorlist to mirrolist.backup before running the command but it doesnt run....  am i not a member of the right group?
Title: Re: is there another option besides rankmirrors?
Post by: SGOrava on 26 January 2020, 09:47:49
Hello,

in your example you run rankmirrors as root (sudo) but forward the output to /atc/pacman.d/mirrorlist as normal user (bash).
So run bash as root or login as root in shell or use different commands to the job.

You might also consider adding "-r system" switch to rankmirrors command.
Title: Re: is there another option besides rankmirrors?
Post by: RGGal on 26 January 2020, 10:51:09
Hello,

in your example you run rankmirrors as root (sudo) but forward the output to /atc/pacman.d/mirrorlist as normal user (bash).
So run bash as root or login as root in shell or use different commands to the job.

You might also consider adding "-r system" switch to rankmirrors command.


TY TY!