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