sypper is intended to be used for server-side testing and benchmarking of download servers and mirror infrastructure. But it can be used for downloading packages e.g. when zypper is slow. It uses repositories description in .repo files, the same way as zypper does.
sypper download
- download packages required for system update.
sypper download <package>
- download a package and required dependencies.
sypper refresh
- update local repositories metadata if needed.
Use the following flags after sypper download
:
-v increase verbosity (may be specified multiple times);
-c followed by number: set concurrency;
-f force refresh of repositories.
run sypper as a regular user: It will create a directory cache/packages in the current directory. You can copy the content of that folder to /var/cache/zypp/packages, so zypper will pick them up instead of downloading.
run sypper as root, then it will download packages to /var/cache/zypp/packages, so zypper will pick them up on the next run.
The initial implementation was taken from libsolv/examples/p5solv.