Prefer "pkgs" rather than "names" when using pkg.installed

"names" makes a separate call to the package management frontend to
install each package, whereas "pkgs" makes just a single call so that it
improves performance.
7 files changed