2 # Gives the list of installed packages on a gentoo system
3 # Usage: listpackages.sh < pkglist.txt
4 # pkglist is a list of packages such as app-arch/dar
5 # In output, the script gives the package followed by the version
10 equery -C -q list -i -e $package | awk '{print $1}'