openSUSE 11.1
zypper 1.0.13
Is there a way to just list the contents of a package through zypper before I install it? The way I’m doing it now is finding and installing the package through zypper, then running rpm -ql <package>. I’ve looked for a way to just get the same thing in the zypper man pages but couldn’t find what I wanted. Not even google search, or forum search helped
Hello,
bistromathics wrote:
> Is there a way to just list the contents of a package through zypper
> before I install it? The way I’m doing it now is finding and installing
> the package through zypper, then running rpm -ql <package>. I’ve
> looked for a way to just get the same thing in the zypper man pages but
> couldn’t find what I wanted. Not even google search, or forum search
> helped
Fetch the files without installing:
zypper in --download-only <package>
Find the file:
find /var/cache/zypp -iname “package*rpm”
List the files in an uninstalled package:
rpm -qlp /var/cache/zypp/packages/<repo_alias>/suse/<arch>/<package-file-name>
That’s --query --list --package <file>.
Good luck,
Andreas Stieger