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