How can I list all files which have been installed by an ZYpp/Zypper package?

rpm can be used to list installed files from a package <package> with:

rpm -ql <package>

long version:

rpm --query --list <package>

zypper does (at the moment) not support listing installed files.

Also, I find the "reverse" helpful. To find the package "owning" a file <file> you can use

rpm -qf <file>

returning the exact package.


In openSUSE, there are a few ways of listing installed files. With Zypper, I would try:

zypper search -i

Or:

zypper search --installed-only

With RPM, you can try:

rpm -ql packageName | less