32

Please tell me, how to let zypper display all installed packages of a certain repository.

3 Answers 3

26

You can easily list that using:

zypper pa -ir <repo_name_or_number>
6
  • Thanks! It works for me only with capital R Please correct the answer. Commented Nov 4, 2009 at 14:01
  • The capital R is for sorting by repo. The lower case one is for the specific repo. You can check the documentation by typing: zypper pa -h
    – Mereghost
    Commented Nov 4, 2009 at 14:11
  • Sorry, I must have typed it just the wrong way at first time. Indeed, r works. Commented Nov 4, 2009 at 15:39
  • 4
    Doesn't work for me using zypper 1.11.22 on OpenSUSE 13.2. Better use zypper search like suggested on the other answer. Commented Mar 16, 2015 at 11:29
  • For zypper 1.14.45 on OpenSUSE 15.2 this shows the packages already installed that could be installed from that repo, independently that they were actually installed from that repo, or from any other. zypper search -i -r answer below does indeed shows only installed packages from that repo.
    – iamc
    Commented Jul 8, 2021 at 6:28
17

Alternative:

zypper search -i -r <repo alias|#|URI>
1
  • For zypper 1.14.45 on OpenSUSE 15.2 this is the correct answer.
    – iamc
    Commented Jul 8, 2021 at 6:29
-1

To find the repo of a package

zypper se -v <package_name>

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .