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