A better way to get the package list by pacman.