Mailinglist Archive: opensuse-factory (454 mails)

< Previous Next >
Re: [opensuse-factory] Zypper: list packages installed from a repository?
  • From: "Carlos E. R." <robin.listas@xxxxxxxxxxxxxx>
  • Date: Tue, 5 Dec 2017 12:32:41 +0100 (CET)
  • Message-id: <alpine.LSU.2.21.1712051228380.7260@Telcontar.valinor>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



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)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAlomg+AACgkQtTMYHG2NR9XVdACcC2YhIpMjkXe8Q6kzqWYSGkK5
2eYAn38iCDwIdjIkXS64/4SQO+nAek94
=DrH2
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-factory+owner@xxxxxxxxxxxx

< Previous Next >
References