Update the repository before installing packages