-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 El 2023-03-22 a las 21:13 +0100, Stephan Hemeier escribió:
You can do it in many versions, see man zypper or zypper se --help.
Examples
The Repo to serach for:
zypper lr -d | grep -i repo-non-oss 4 | repo-non-oss | Non-OSS Repository | Ja | (r ) Ja | Ja | 99 | rpm-md | http://download.opensuse.org/distribution/leap/15.4/repo/non-oss/ |
Sure, but I want the list of all packages from all repos, sorted by repo, indicating which repo each thing comes from, and hopefully, in both tabulated format and csv format :-)
And now:
zypper se -sir 4 Repository-Daten werden geladen... Installierte Pakete werden gelesen...
S | Name | Type | Version | Arch | Repository ---+-------+-------+-----------------+--------+------------------- i+ | unrar | Paket | 6.1.6-lp154.1.1 | x86_64 | Non-OSS Repository
I prefer long options, specially on the mail list, as they say something about what they do, and are easier to find in the manual. -i, --installed-only Show only installed packages. -r, --repo alias|name|#|URI Work only with the repository specified by the alias, name, number, or URI. This option can be used multiple times. -s, --details Show all available versions of matching packages, each version in each repository on a separate line. cer@Telcontar:~> zypper --no-refresh search --installed-only --sort-by-repo --details | head --lines=100 Loading repository data... Reading installed packages... S | Name | Type | Version | Arch | Repository - ---+-----------------------------------------------+---------+-----------------------------------------------------+--------+------------------------------------------------------------- il | antivir | package | 2.1.10.15-58.1.1 | i586 | (System Packages) il | binkd | package | 0.9.4-1 | i686 | (System Packages) il | BinkleyTermXE | package | v2.60XE-Beta_XH6 | i686 | (System Packages) i+ | cgrep | package | 8.15-2.1 | x86_64 | (System Packages) i+ | cinelerra | package | 5.1-20180430 | x86_64 | (System Packages) il | fidoconf | package | 0.10c-1 | i686 | (System Packages) i | gmanedit | package | 0.4.2-1.3.lk | x86_64 | (System Packages) i+ | howto | package | 2007.1.1-41 | noarch | (System Packages) i+ | howtoenh | package | 2007.1.1-41 | noarch | (System Packages) il | hpt | package | 0.9.7d-1 | i686 | (System Packages) il | hptutil | package | hptutil-1 | i686 | (System Packages) i+ | java-1_8_0-openjdk | package | 1.8.0.362-150000.3.76.1 | x86_64 | (System Packages) i+ | java-1_8_0-openjdk-headless | package | 1.8.0.362-150000.3.76.1 | x86_64 | (System Packages) i | jDictionary | package | 1.80-812 | noarch | (System Packages) i | jDictionary-SmartEngSpa | package | 1.0-825 | noarch | (System Packages) il | libmysqlclient18 | package | 10.0.35-35.1 | x86_64 | (System Packages) i+ | mediatomb | package | 0.12.1.svn2103-pm154.18.5 | x86_64 | (System Packages) i+ | mediatomb-mysql | package | 0.12.1.svn2103-pm154.18.5 | x86_64 | (System Packages) il | multiload-ng-base | package | 743885d.git-lp153.3.1 | x86_64 | (System Packages) il | multiload-ng-xfce4 | package | 743885d.git-lp153.3.1 | x86_64 | (System Packages) i | pkpgcounter | package | 2.17-3.1 | i586 | (System Packages) i | python-sip-common | package | 4.19.19-1.52 | x86_64 | (System Packages) il | regionset | package | 0.2-lp150.1.1 | x86_64 | (System Packages) il | rekall | package | 2.4.6-118.54 | x86_64 | (System Packages) il | rekall-examples | package | 2.4.6-118.54 | x86_64 | (System Packages) il | rekall-mysql | package | 2.4.6-118.54 | x86_64 | (System Packages) il | rekall-postgresql | package | 2.4.6-118.54 | x86_64 | (System Packages) il | rekall-sqlite | package | 2.4.6-118.54 | x86_64 | (System Packages) il | rekall-xbase | package | 2.4.6-118.54 | x86_64 | (System Packages) il | smapi | package | 2.0.0-1 | i686 | (System Packages) i+ | wine | package | 8.3-lp154.1556.10 | x86_64 | (System Packages) i+ | wine-32bit | package | 8.3-lp154.1556.10 | x86_64 | (System Packages) i+ | xpdf | package | 3.03-6.1 | x86_64 | (System Packages) i+ | amrwb | package | 11.0.0.0-pm154.2.4 | x86_64 | EXT: Packman Repository i+ | asunder | package | 2.9.7-pm154.1.1 | x86_64 | EXT: Packman Repository i+ | autopano-sift-C | package | 2.5.1-pm154.3.2 | x86_64 | EXT: Packman Repository i+ | avidemux3 | package | 2.8.1-pm154.2.1 | x86_64 | EXT: Packman Repository i+ | avidemux3-cli | package | 2.8.1-pm154.2.1 | x86_64 | EXT: Packman Repository i+ | avidemux3-qt5 | package | 2.8.1-pm154.2.1 | x86_64 | EXT: Packman Repository i+ | avidemux3-qt5-lang | package | 2.8.1-pm154.2.1 | noarch | EXT: Packman Repository i+ | BitTorrent | package | 4.4.0-pm154.4.2 | noarch | EXT: Packman Repository i+ | BitTorrent-curses | package | 4.4.0-pm154.4.2 | noarch | EXT: Packman Repository i+ | dvgrab | package | 3.5-pm154.13.3 | x86_64 | EXT: Packman Repository i+ | faac | package | 1.30-pm154.1.4 | x86_64 | EXT: Packman Repository i+ | faad2 | package | 2.10.0-pm154.1.4 | x86_64 | EXT: Packman Repository i+ | ffmpeg-3 | package | 3.4.12-pm150400.1.1 | x86_64 | EXT: Packman Repository i+ | ffmpegyag | package | 0.7.6.git20170503-pm154.2.2 | x86_64 | EXT: Packman Repository i+ | flash-player | package | 32.0.0.465-pm154.3.1 | x86_64 | EXT: Packman Repository i+ | gdk-pixbuf-loader-libheif | package | 1.15.1-pm154.6.1 | x86_64 | EXT: Packman Repository i+ | GeneralUser | package | 1.471-pm154.1.1 | noarch | EXT: Packman Repository i+ | gimp-plugin-heif | package | 1.1.0+git20191012.d6bea52-pm154.2.7 | x86_64 | EXT: Packman Repository i+ | gmerlin | package | 1.2.0rsvn4256-pm154.5.3 | x86_64 | EXT: Packman Repository i+ | gmerlin-recorder | package | 1.2.0rsvn4256-pm154.5.3 | x86_64 | EXT: Packman Repository i+ | gmplayer | package | 1.2.r38304-pm154.3.1 | x86_64 | EXT: Packman Repository i+ | gstreamer-plugins-bad-codecs | package | 1.20.1-pm154.3.1 | x86_64 | EXT: Packman Repository i+ | gstreamer-plugins-ugly-codecs | package | 1.20.1-pm154.1.5 | x86_64 | EXT: Packman Repository i+ | handbrake-gtk | package | 1.5.1-pm154.1.4 | x86_64 | EXT: Packman Repository i+ | handbrake-gtk-lang | package | 1.5.1-pm154.1.5 | noarch | EXT: Packman Repository i+ | heif-examples | package | 1.15.1-pm154.6.1 | x86_64 | EXT: Packman Repository i+ | kodi | package | 20.1-pm150400.1.1 | x86_64 | EXT: Packman Repository i+ | kodi.binary-addons | package | 20.1-pm150400.1.1 | x86_64 | EXT: Packman Repository i+ | kodi.binary-addons-audiodecoder.timidity | package | 20.1-pm150400.1.1 | x86_64 | EXT: Packman Repository i+ | libaften0 | package | 0.0.8.git20110104-pm154.1.2 | x86_64 | EXT: Packman Repository i+ | libamrnb3 | package | 11.0.0.0-pm154.3.4 | x86_64 | EXT: Packman Repository i+ | libamrwb3 | package | 11.0.0.0-pm154.2.4 | x86_64 | EXT: Packman Repository i+ | libavcodec57 | package | 3.4.12-pm150400.1.1 | x86_64 | EXT: Packman Repository i+ | libavcodec57-debuginfo | package | 3.4.12-pm150400.1.1 | x86_64 | EXT: Packman Repository i+ | libavcodec58_134 | package | 4.4-pm154.3.14.2 | x86_64 | EXT: Packman Repository i+ | libavdevice57 | package | 3.4.12-pm150400.1.1 | x86_64 | EXT: Packman Repository i+ | libavdevice58_13 | package | 4.4-pm154.3.14.2 | x86_64 | EXT: Packman Repository i+ | libavfilter6 | package | 3.4.12-pm150400.1.1 | x86_64 | EXT: Packman Repository i+ | libavfilter6-debuginfo | package | 3.4.12-pm150400.1.1 | x86_64 | EXT: Packman Repository i+ | libavfilter7_110 | package | 4.4-pm154.3.14.2 | x86_64 | EXT: Packman Repository i+ | libavformat57 | package | 3.4.12-pm150400.1.1 | x86_64 | EXT: Packman Repository i+ | libavformat57-debuginfo | package | 3.4.12-pm150400.1.1 | x86_64 | EXT: Packman Repository i+ | libavformat58_76 | package | 4.4-pm154.3.14.2 | x86_64 | EXT: Packman Repository i+ | libavresample3 | package | 3.4.12-pm150400.1.1 | x86_64 | EXT: Packman Repository i+ | libavresample3-debuginfo | package | 3.4.12-pm150400.1.1 | x86_64 | EXT: Packman Repository i+ | libavresample4_0 | package | 4.4-pm154.3.14.2 | x86_64 | EXT: Packman Repository i+ | libavutil55 | package | 3.4.12-pm150400.1.1 | x86_64 | EXT: Packman Repository i+ | libavutil55-debuginfo | package | 3.4.12-pm150400.1.1 | x86_64 | EXT: Packman Repository i+ | libavutil56_70 | package | 4.4-pm154.3.14.2 | x86_64 | EXT: Packman Repository i+ | libdca0 | package | 0.0.7-pm154.1.4 | x86_64 | EXT: Packman Repository i+ | libdcadec0 | package | 0.2.0-pm154.2.4 | x86_64 | EXT: Packman Repository i+ | libdcaenc0 | package | 2-pm154.2.2 | x86_64 | EXT: Packman Repository i+ | libde265-0 | package | 1.0.9-pm154.1.1 | x86_64 | EXT: Packman Repository i+ | libdvdplay0 | package | 1.0.1-pm154.5.2 | x86_64 | EXT: Packman Repository i+ | libdvdread3 | package | 0.9.7-pm154.9.2 | x86_64 | EXT: Packman Repository i+ | libfaac0 | package | 1.30-pm154.1.4 | x86_64 | EXT: Packman Repository i+ | libfaad2 | package | 2.10.0-pm154.1.4 | x86_64 | EXT: Packman Repository i+ | libfdk-aac2 | package | 2.0.2-pm154.1.3 | x86_64 | EXT: Packman Repository i+ | libgmerlin0 | package | 1.2.0rsvn4256-pm154.5.3 | x86_64 | EXT: Packman Repository i+ | libgmerlin_gtk0 | package | 1.2.0rsvn4256-pm154.5.3 | x86_64 | EXT: Packman Repository i+ | libheif1 | package | 1.15.1-pm154.6.1 | x86_64 | EXT: Packman Repository i+ | libmac2 | package | 3.99_u4_b5_s7-pm154.5.2 | x86_64 | EXT: Packman Repository cer@Telcontar:~> Not bad. What I can hope to attain with my script is something like this: - ----------------------------------------------------------------------------------------------------------------------------+ Repo: System Packages | - ---+-----------------------------------------------+---------+-----------------------------------------------------+--------+ S | Name | Type | Version | Arch | - ---+-----------------------------------------------+---------+-----------------------------------------------------+--------+ il | antivir | package | 2.1.10.15-58.1.1 | i586 | il | binkd | package | 0.9.4-1 | i686 | il | BinkleyTermXE | package | v2.60XE-Beta_XH6 | i686 | - ---------------------------------------------------+---------+-----------------------------------------------------+--------+ Repo: EXT: Packman - ---+-----------------------------------------------+---------+-----------------------------------------------------+--------+ S | Name | Type | Version | Arch | - ---+-----------------------------------------------+---------+-----------------------------------------------------+--------+ i+ | amrwb | package | 11.0.0.0-pm154.2.4 | x86_64 | i+ | asunder | package | 2.9.7-pm154.1.1 | x86_64 | i+ | autopano-sift-C | package | 2.5.1-pm154.3.2 | x86_64 | I still miss the info from the openSUSE release. And csv format. - -- Cheers, Carlos E. R. (from openSUSE 15.4 x86_64 at Telcontar) -----BEGIN PGP SIGNATURE----- iHoEARECADoWIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCZBt1Qxwccm9iaW4ubGlz dGFzQHRlbGVmb25pY2EubmV0AAoJELUzGBxtjUfVybIAnRuL42OXQUOk1i3fz0zr hzS7+NL6AJwJ8+pkUUZo/d424n0RK6SiEGV3Hw== =rPuT -----END PGP SIGNATURE-----