Mailinglist Archive: opensuse-factory (454 mails)

< Previous Next >
Re: [opensuse-factory] Zypper: list packages installed from a repository?
  • From: Knurpht - Gertjan Lettink <knurpht@xxxxxxxxxxxx>
  • Date: Tue, 05 Dec 2017 14:15:57 +0100
  • Message-id: <56021309.cx2PfNAuvF@knurpht-hp>
Op dinsdag 5 december 2017 12:32:41 CET schreef Carlos E. R.:
On Monday, 2017-12-04 at 22:31 -0500, Felix Miata wrote:
Tom Hardy composed on 2017-12-04 20:39 (UTC-0600):
So far I've got "zypper se -is .* | grep <repository>", e.g.:

zypper se -is .* | grep Hardware
i+ | android-tools | package |
5.1.1_r8-31.28>>
| x86_64 | Hardware-Tumbleweed

i+ | heimdall | package | 1.4.2-1.5

| x86_64 | Hardware-Tumbleweed

i+ | heimdall-frontend | package | 1.4.2-1.5

| x86_64 | Hardware-Tumbleweed

It works well if the repository name is unique to the whole list; helpful
even if it's not. But I'm wondering if I'm missing a way for zypper to
do it directly.

List all sources of a package: "zypper se -s <package> | grep ^[iv]"

Same caveat, but it often won't be a clean list.

# zypper --no-refresh se -s -i KDE3
Loading repository data...
Reading installed packages...

S | Name | Type | Version | Arch |
Repository
---+--------------------------+---------+---------------------+--------+-
---------- i+ | kde3-cpuinfo | package | 0.5.2-5.60 |
x86_64 | KDE3 i+ | kde3-digikam | package | 0.9.6-51.2
| x86_64 | KDE3 i+ | kde3-digikam-lang | package | 0.9.6-51.2
| noarch | KDE3 i+ | kde3-gtk-qt-engine | package |
0.8svn20071009-52.1 | x86_64 | KDE3 i+ | kde3-gwenview |
package | 1.4.2-149.50 | x86_64 | KDE3 i+ | kde3-gwenview-lang
| package | 1.4.2-149.50 | noarch | KDE3 i+ | kde3-k3b
| package | 1.0.5-67.51 | x86_64 | KDE3 i+ | kde3-k3b-lang
| package | 1.0.5-67.51 | noarch | KDE3 i+ |
kde3-kio_iso | package | 1.90.0-17.59 | x86_64 | KDE3
i+ | kde3-kipi-plugins | package | 0.1.6-40.2 | x86_64 |
KDE3 i+ | kde3-kipi-plugins-lang | package | 0.1.6-40.2 |
noarch | KDE3 i | kde3-koffice | package | 1.6.3-324.1
| x86_64 | KDE3 i | kde3-koffice-database | package | 1.6.3-324.1
| x86_64 | KDE3 i+ | kde3-koffice-spreadsheet | package |
1.6.3-324.1 | x86_64 | KDE3 i+ | kde3-oxygen-icon-theme |
package | 4.0-1.1 | noarch | KDE3
Interesting. I see possible to edit the list a bit and import in
LibreOffice calc.

Would it be possible to generate the package list (with version,
repository, etc) but separated with commas, no spaces?


--
Cheers,
Carlos E. R.
(from openSUSE 42.2 x86_64 "Malachite" at Telcontar)
Next to the other options mentioned, why not use the pipe char as the field
separator in Calc?

--
Gertjan Lettink, a.k.a. Knurpht

openSUSE Board Member
openSUSE Forums Team
--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-factory+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups