arch linux update packages code example Example 1: update package archlinux sudo pacman -Syu Example 2: update package repository arch sudo pacman -Syy