You are not logged in.

#1 2010-12-04 14:13:36

dobbs
Member
From: Oregon USA
Registered: 2010-10-06
Posts: 74

Pacman Mirrorlist Generator - Improve Pacman's Speed

Visit the Pacman Mirrorlist Generator:
http://www.archlinux.org/mirrorlist/.
Improve synching and pacman download times. A list is generated by region and it can replace
old or slow mirrorlist (/etc/pacman.d/mirrorlist). It dramatically improved my package download times from slow to fast...:-)

Offline

#2 2011-01-08 14:58:38

joe74
Member
From: Managua, Nicaragua
Registered: 2010-10-11
Posts: 21
Website

Re: Pacman Mirrorlist Generator - Improve Pacman's Speed

My mirror list was generated by that Pacman Mirrorlist Generator and now there are a dozen repos not responding. Is there a problem with them? though they sometimes work, sometimes they don't...

Offline

#3 2011-01-08 21:13:48

dobbs
Member
From: Oregon USA
Registered: 2010-10-06
Posts: 74

Re: Pacman Mirrorlist Generator - Improve Pacman's Speed

I generated the list once after my install. Never had any problems with it. I just checked the list against my install list, it's the same and it works fine.... :-)
Btw, you did uncomment the links?

Last edited by dobbs (2011-01-08 21:15:30)

Offline

#4 2011-01-09 14:50:22

joe74
Member
From: Managua, Nicaragua
Registered: 2010-10-11
Posts: 21
Website

Re: Pacman Mirrorlist Generator - Improve Pacman's Speed

dobbs wrote:

Btw, you did uncomment the links?

For sure, I did. It's maybe they don't work very well from my country.

Offline

#5 2011-01-10 14:18:38

pablokal
Administrator
From: Nijmegen, Holland
Registered: 2010-10-12
Posts: 3,203
Website

Re: Pacman Mirrorlist Generator - Improve Pacman's Speed

My mirror list was generated by that Pacman Mirrorlist Generator and now there are a dozen repos not responding. Is there a problem with them? though they sometimes work, sometimes they don't...

Did you specify your achitecture?
To indicate whether you want/ have a 32 or 64 bit program / system, I replace at the end of each line $ arch by  i686 for older pc's or  x86_64 if you have a newer 64 bit system.
I always do that because else I will face some connection problem sometimes.


Getting your questions answered here at ArchBang Forums
Please! Always give hardware info, if there is a chance that 's relevant: #lspci -vnn
On Arch(bang) and Openbox: http://stillstup.blogspot.com/

Offline

#6 2011-03-01 16:58:39

prairie_dad
Member
Registered: 2011-02-28
Posts: 4

Re: Pacman Mirrorlist Generator - Improve Pacman's Speed

Doesn't the Arch installation guide suggest running Mirrorlist as a regular step?  Any reason A! shouldn't do the same? I wondered about that when I first installed A! the other day...but haven't gotten around to running it myself!

Offline

#7 2011-03-01 18:00:50

pablokal
Administrator
From: Nijmegen, Holland
Registered: 2010-10-12
Posts: 3,203
Website

Re: Pacman Mirrorlist Generator - Improve Pacman's Speed

Yes, you're right, update  mirrorlist regularly.
Rankmirrors is another tool to do it.


Getting your questions answered here at ArchBang Forums
Please! Always give hardware info, if there is a chance that 's relevant: #lspci -vnn
On Arch(bang) and Openbox: http://stillstup.blogspot.com/

Offline

#8 2012-01-31 14:18:18

doug piston
Member
Registered: 2011-12-18
Posts: 64

Re: Pacman Mirrorlist Generator - Improve Pacman's Speed

Reflector is a great tool for sorting the mirrorlist

https://wiki.archlinux.org/index.php/Reflector

Offline

#9 2012-01-31 15:10:05

oliver
Administrator
Registered: 2010-11-04
Posts: 1,911

Re: Pacman Mirrorlist Generator - Improve Pacman's Speed

doug piston wrote:

Reflector is a great tool for sorting the mirrorlist

https://wiki.archlinux.org/index.php/Reflector

agreed - thats what I run from cron every week

Offline

#10 2012-01-31 15:23:47

doug piston
Member
Registered: 2011-12-18
Posts: 64

Re: Pacman Mirrorlist Generator - Improve Pacman's Speed

oliver wrote:
doug piston wrote:

Reflector is a great tool for sorting the mirrorlist

https://wiki.archlinux.org/index.php/Reflector

agreed - thats what I run from cron every week

What a great idea. I hadn't thought of that.

Offline

#11 2012-02-09 21:02:19

rog
Member
Registered: 2012-02-08
Posts: 15

Re: Pacman Mirrorlist Generator - Improve Pacman's Speed

Can anybody tell me...when you generate a list with the Use mirror status: checkbox checked, what does the score it give indicate? And is a high score or low score preferable?

Thanks!

Offline

#12 2012-02-09 22:04:32

ArchVortex
Retired AB Overlord
From: Junrejo, Jawa Timur, Indonesia
Registered: 2011-04-01
Posts: 1,456

Re: Pacman Mirrorlist Generator - Improve Pacman's Speed

The lower the score, the better.

## Score: 0.7, United States
#Server = http://mirror.rit.edu/archlinux/$repo/os/$arch
## Score: 0.8, United States
#Server = http://mirror.ece.vt.edu/archlinux/$repo/os/$arch
## Score: 0.8, United States
#Server = http://mirrors.us.kernel.org/archlinux/$repo/os/$arch
## Score: 0.9, United States
#Server = ftp://mirror.rit.edu/archlinux/$repo/os/$arch
## Score: 1.0, Germany
#Server = http://mirror.devnu11.net/archlinux/$repo/os/$arch
## Score: 1.1, Germany
#Server = http://ftp5.gwdg.de/pub/linux/archlinux/$repo/os/$arch
## Score: 1.1, Japan
#Server = http://ftp.jaist.ac.jp/pub/Linux/ArchLinux/$repo/os/$arch
## Score: 1.1, United States
#Server = ftp://ftp.archlinux.org/$repo/os/$arch
## Score: 1.1, United States
#Server = http://mirror.mocker.org/archlinux/$repo/os/$arch
## Score: 1.1, France
#Server = http://archlinux.polymorf.fr/$repo/os/$arch

You can see that rit.edu is the fastest for the US on this list. The problem is fastest mirror doesn't always mean best download speed. Jaist,ac,jp is the fastest mirror for me in my area but soooo slow for downloading.


GUI's?? We don't need no stinkin' GUI's!!!
ArchBang-OpenRC / Slackware / Gentoo / FreeBSD / HaikuOS

Offline

#13 2012-02-09 23:04:53

rog
Member
Registered: 2012-02-08
Posts: 15

Re: Pacman Mirrorlist Generator - Improve Pacman's Speed

Thank you! Ok, I have my mirrors set up, now I'm onto the next issue. ;-)

Offline

#14 2013-05-09 15:31:20

andrekp
Member
Registered: 2013-01-06
Posts: 34

Re: Pacman Mirrorlist Generator - Improve Pacman's Speed

This is a script I use:

#!/bin/bash

#This script is used to do a full update.  It will:
# 1).  Update the pacman mirrorlist to be headed by the most recently
#      updated, then fastest (best options on top of list)
# 2).  Then it will display the new mirrorlist for you to verify.
#      -Hit "Y" to proceed with update.
# 3).  It will execute pacman -Syu to find packages to update.
#      -Hit "Y" to proceed with update.
# 4).  It will give you a choice to proceed to clean the cache to 3 versions
#      of each program.  (better than pacman -Scc)
#      -Hit "Y" to clean out the cache.
# 5).  Script exits.


#****************************************************************************************************
#  1). Update mirrors to a combo of fastest and most recently sync'ed including only U.S.:

echo " "
echo "*************************************************************"
echo "* Querying U.S. mirror servers for speed and timeliness...  *"
echo "*************************************************************"

sudo /usr/bin/reflector --verbose -c "United States" -l 50 -p http --sort rate --save /etc/pacman.d/mirrorlist

wait

#****************************************************************************************************
# 2). Display new mirrorlist:

echo " "
echo "*************************************************************"
echo "* Please check the new mirrorlist for accuracy or problems: *"
echo "*************************************************************"
echo " "

#leafpad /etc/pacman.d/mirrorlist
cat /etc/pacman.d/mirrorlist

wait

#****************************************************************************************************
# 3). Procede with pacman update if desired:

echo " "
read -p "Continue full system upgrade (Y/n)?" CONT


# Set to "Y" as default if user simply hit [ENTER]:
 
if [[ $CONT == "" ]]; then
	myvar="y"
else
	myvar=$CONT
fi

#Check entry:

case $myvar in
	[yY])
	echo " "
	echo "*************************************************************"
	echo "* Performing system upgrade                                 *"
	echo "*************************************************************"
	echo " "
	sudo pacman -Syu
	;;
	[nN])
	echo " "
	echo "*************************************************************"
	echo "* Exiting full_update                                       *"
	echo "*************************************************************"
	echo " "
	exit	
;;
esac

wait

#****************************************************************************************************
# 4). Procede with cache cleaning if desired:

echo " "
echo "*************************************************************"
echo "* Cache Cleaning: *"
echo "*************************************************************"
echo " "

echo " "
read -p "Perform cache clean (Y/n)?" CONT


# Set to "Y" as default if user simply hit [ENTER]:
 
if [[ $CONT == "" ]]; then
	myvar="y"
else
	myvar=$CONT
fi

#Check entry and clean:
#   -p is preview mode, no files deleted
#   -v is verbose mode, shows deleted packges
#    # is number of versions of each package to keep. ( current + previous )

case $myvar in
	[yY])
	# determine packages to be cleaned and display them:
	echo " "
	echo "*************************************************************"
	echo "* Finding packages to be cleaned...                         *"
	echo "*************************************************************"
	echo " "
	sudo cacheclean -p -v 3
	;;
	[nN])
	echo " "
	echo "*************************************************************"
	echo "* Exiting full_update                                       *"
	echo "*************************************************************"
	echo " "
	exit	
;;
esac

# debug exit:
# exit

# perform the cleaning

echo " "
read -p "Clean the above files from cache (Y/n)?" CONT


# Set to "Y" as default if user simply hit [ENTER]:
 
if [[ $CONT == "" ]]; then
	myvar="y"
else
	myvar=$CONT
fi

#Check entry and clean:

case $myvar in
	[yY])
	echo " "
	echo "*************************************************************"
	echo "* Cleaning cache                                            *"
	echo "*************************************************************"
	echo " "
	sudo cacheclean -v 3
	;;
	[nN])
	echo " "
	echo "*************************************************************"
	echo "* Exiting full_update                                       *"
	echo "*************************************************************"
	echo " "

	exit	
;;
esac

echo " "
echo "*************************************************************"
echo "* Finishing full_update                                     *"
echo "*************************************************************"
echo " "

exit 

You'll need to install reflector and cacheclean.

It's pretty generic, though you'll want to alter the reflector parms if you aren't in the U.S.

It will update the mirrors, allow you to inspect the updates, do a pacman -Syu  (you can change that to Packer if you prefer), then clean out the cache to hold a total of three versions (change that number if you like).

Nice and simple and keeps you up to date in one step.

Offline

Board footer

Powered by FluxBB