reduce dependencies and run apt-update only once