On Thu, Apr 11, Olaf Hering wrote: > env -u LANG LC_ALL=C zypper \ > --root $PWD/tmp/root \ > --reposd-dir /etc/zypp/repos.d \ > --cache-dir tmp/cache-dir \ > --pkg-cache-dir tmp/pkg_cache_dir \ > --gpg-auto-import-keys \ > --non-interactive \ > --xml \ > install \ > --auto-agree-with-licenses \ > --dry-run \ > bash | awk '/^.solvable/ { print $3}' | cut -f 2 -d '"'
Replacing awk with xmlstarlet works like that: zypper ... --xml install ... | xml sel -t \ -m "stream/install-summary/to-install/solvable[@type='package']" \ -c "string(@name)" -n I think using an empty --root is a usable workaround to get the list of packages. Olaf -- To unsubscribe, e-mail: zypp-devel+unsubscr...@opensuse.org To contact the owner, e-mail: zypp-devel+ow...@opensuse.org