pacman update upgrade code example Example 1: update package archlinux sudo pacman -Syu Example 2: pacman update database pacman -Syy