But this still makes apt-get read the package list and check for dependencies for every apt-get separated with "&&". My build-machine is quite slow, and every step takes a lot of time, and I hoped I could shave of a few minutes by saving the redundant package-list reading and dependency checking and get apt-get to do it all at once, something like this:

1 Answer
1

to select a particular version of the package, append "=" to the package name: for instance, "aptitude install apt=0.3.1". Similarly, to select a package from a particular archive, append "/" to the package name: for instance, "aptitude install apt/experimental".

so the solution to your problem is using aptitude (which i would recommend anyhow in favour of apt-get):