Results 1 to 2 of 2

Thread: zypper: list files in package

  1. #1

    Unhappy zypper: list files in package

    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

  2. #2

    Default Re: zypper: list files in package

    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


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •