![](https://seccdn.libravatar.org/avatar/806a41bf7a1d02ca9a06b1459840b323.jpg?s=120&d=mm&r=g)
On 9/19/18 5:11 PM, Simon Becherer wrote:
Hi,
i am searching the zypper manpage, but not finding / understanding it: (i do not often use zypper commandline)
is there a syntax for only download a complete repo (all rpm's) or at least one rpm?
-> i have a non browsable repo for closed source software (we pay for it). i like to store all rpm-files locally. to have the benefit to easily roll back if a new version is incompatible with our systems, or has a bug. (the repo only holds the newest versions.)
something like:
zypper --download-only [--dry-run] --from http://url *
You can either search the repo and then build the download urls yourself: zypper -x search -s -r your_reponame The -x gives you xml output which you may pipe through xmlstarlet or xml_grep or... to find out package names, versions and architecture. Easier for downloading is zypper download --all-matches "*" but this will download from all repos. You should probably temporary disable other repos. And i'm not sure if it will download old versions. Use --pkg-cache-dir to store rpms in another location.