Tag Archive for 'download'

Zypper “download only” option

Sometimes on an openSUSE box I want to be able to pre-download the packages and install at a later date. By default, it downloads each package and installs it before the moving onto the next one. If the update is interrupted, then you can end up with a broken system (it’s happened a few times).

Now I’ve found out how to enable cache and download only with zypper

Zypper can enable cache on a per-repository basis (pretty neat), or you can set them all up like so:
zypper mr -k -all

Now that you have cache enabled, just do a dry-run which will download everything, but not install them:
zypper -l -y update --dry-run

And there you are..