pacman update repositories code example Example 1: update package repository arch sudo pacman -Syy Example 2: pacman update database pacman -Syy