"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.