Passing the list and letting the package manager deal with it as a whole is much faster than looping, which is equivalent to invoking the package manager multiple times, each time with a single package.