Please tell me, how to let zypper display all installed packages of a certain repository.
Asked
Active
Viewed 4.0k times
2 Answers
23
You can easily list that using:
zypper pa -ir <repo_name_or_number>
Mereghost
- 720
- 5
- 6
-
Thanks! It works for me only with capital `R` Please correct the answer. – java.is.for.desktop Nov 04 '09 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 Nov 04 '09 at 14:11
-
Sorry, I must have typed it just the wrong way at first time. Indeed, `r` works. – java.is.for.desktop Nov 04 '09 at 15:39
-
4Doesn't work for me using zypper 1.11.22 on OpenSUSE 13.2. Better use `zypper search` like suggested on the other answer. – Rémi Benoit Mar 16 '15 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 Jul 08 '21 at 06:28
-
This answer is flat out incorrect. See the previous comment. The pa command literally means "packages available". The other answer here is correct. – EricS Aug 18 '23 at 21:22