First, update the package database and core system packages by typing (for more info about pacman see this page):