Arch Linux Installation log pt. 4 – Updating the system

October 11, 2009  |  Arch Linux

With the base system installed and the network configured, I am ready to update my system.

Ranking the mirrors

But first I’d like to rank my mirrors. The first thing I need to do is to prepare the mirrorlist by removing all mirros that are far away physically from me. The idea is to only have servers in the list that are close to you. If it is closer to you it is probably fairly quick as well (relative to you).

Edit the mirrorlist

nano /etc/pacman.d/mirrorlist

and remove all sites that you don’t need and uncomment all the sites that are left.

Install python (needed to run the script). Note, if a new version of pacman is installed you will probably be prompted to update pacman itself first.

pacman -Sy python

Change directory

cd /etc/pacman.d

Make a copy of the mirrorlist

cp mirrorlist mirrorlist.backup

Run the ranking script (this may take some time)

rankmirrors -n 6 mirrorlist.backup > mirrorlist

Updating the system

Syncronize the package databases

pacman -Syy
pacmansyy

Start a full system upgrade

pcaman -Su
pacmansu

Very good! You now have an up-to-date Arch Linux system installed. Now will be a good time to do a reboot.

reboot



Leave a Reply