update and install packages