Mailinglist Archive: opensuse-factory (454 mails)

< Previous Next >
Re: [opensuse-factory] Zypper: list packages installed from a repository?
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

# zypper --no-refresh se -s -r Libdvdcss
Building repository 'Libdvdcss' cache
...........................................................................[done]
Loading repository data...
Reading installed packages...

S | Name | Type | Version | Arch | Repository
---+-----------------------+------------+-----------+--------+-----------
| libdvdcss | srcpackage | 1.4.0-1.1 | noarch | Libdvdcss
| libdvdcss-debugsource | package | 1.4.0-1.1 | x86_64 | Libdvdcss
| libdvdcss-devel | package | 1.4.0-1.1 | x86_64 | Libdvdcss
i+ | libdvdcss2 | package | 1.4.0-1.1 | x86_64 | Libdvdcss
| libdvdcss2-debuginfo | package | 1.4.0-1.1 | x86_64 | Libdvdcss

Are there any other zypper tricks I should know?

I put scripts for my most used combinations in /usr/local/bin, e.g.

zypsei (installed)
zypseo (System Packages)
--
"Wisdom is supreme; therefore get wisdom. Whatever else you
get, get wisdom." Proverbs 4:7 (New Living Translation)

Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata *** http://fm.no-ip.com/
--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-factory+owner@xxxxxxxxxxxx

< Previous Next >
References