On 23/09/2018 13.50, Simon Becherer wrote:
but you can do:
zypper download --dry-run --all-matches screen*
but maybe i have not correct understand, up to now, i am not able to make a new envioremt onyl for this zypper command to gave him only one special repo.
You can get the list of packages in the repo using YaST, so there must be another zypper command concoction that lists the packages in the repo. Maybe: zypper se --repo name --details Only that it doesn't create the exact rpm file names.
cer@Legolas:~> zypper se --repo OBS_Emulators_Wine --details | head Loading repository data... Reading installed packages...
S | Name | Type | Version | Arch | Repository ---+-----------------------------------------+------------+-------------------------------------------+--------+--------------------- | dynamite | package | 0.1.1-lp150.1.1 | x86_64 | OBS: Emulators: Wine | dynamite | srcpackage | 0.1.1-lp150.1.1 | noarch | OBS: Emulators: Wine | dynamite-debuginfo | package | 0.1.1-lp150.1.1 | x86_64 | OBS: Emulators: Wine | dynamite-debugsource | package | 0.1.1-lp150.1.1 | x86_64 | OBS: Emulators: Wine v | gettext-runtime | package | 0.19.8.1-lp150.12.1 | x86_64 | OBS: Emulators: Wine cer@Legolas:~>
cer@Legolas:~> zypper download --all-matches --pkg-cache-dir ~/tmp/packages dynamite Unknown option '--pkg-cache-dir' cer@Legolas:~> zypper --pkg-cache-dir ~/tmp/packages download --all-matches dynamite Loading repository data... Reading installed packages... No prune to best version. (--all-matches) Retrieving package dynamite-0.1.1-lp150.1.1.x86_64 (1/1), 11.5 KiB ( 12.1 KiB unpacked) (1/1) /home/cer/tmp/packages/OBS_Emulators_Wine/x86_64/dynamite-0.1.1-lp150.1.1.x86_64.rpm ...................[done]
download: Done. cer@Legolas:~>
cer@Legolas:~> ls tmp/packages/ OBS_Emulators_Wine cer@Legolas:~> ls tmp/packages/OBS_Emulators_Wine/ x86_64 cer@Legolas:~> tree tmp/packages/ tmp/packages/ └── OBS_Emulators_Wine └── x86_64 └── dynamite-0.1.1-lp150.1.1.x86_64.rpm
2 directories, 1 file cer@Legolas:~>
:-))) -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.0 (Legolas))