Home_greyopenFATE - openSUSE feature tracking > #302159
Dashboard | Search | Sign up | Login

Please login or register to be able to edit or vote this feature.

zypper: Add option to only download packages (-d)

Feature state

Rejected Information
Rejected Information


rug has a '-d' option which causes it only download packages, not to install them. zypper does not have one.

to make use of such options (download packages and install them later) zypp must be able to keep the packages downloaded and use them later instead of downloading them again (eg. some kind of persistent cache).



See also Feature #300747 and #305624


  • Run zypper with: zypper install --download-only [package]
  • Subsequent "zypper install [package]" (without --download-only) should not download the package again, just install it.
  • This should work with install, update, dist-upgrade, patch, and verify commands


icons/user_comment.png J. S. wrote: (10 years ago)

Duncan, Michael, thanks!

Stano, please, postpone for 11.0.

icons/user_comment.png F. L. wrote: (10 years ago)

Lets not forget that 70%+ of OpenSUSE users have broadband according to the survey, which means this is a marginal advantage, albeit a nice one (I imagine, users who are charged by the bit, and advanced users doing who-knows-what will take advantage of the ability to retrieve packages from the cache).

icons/user_comment.png J. E. wrote: (9 years ago)

Broadband is actually a pretty broad term, and so the survey item probably did not have much value.

icons/user_comment.png S. V. wrote: (10 years ago)

zypper improvements, commit re-factoring.

icons/user_comment.png E. S. wrote: (9 years ago)

One advantage will be that packages can be inspected by a prog. such as mc in advance to installation or to manually take them apart by rpm2cpio. Sometimes it is necessary to add special rpm-installation options as --excludepath or --excludedocs to install several versions of a single package for downward compatibility.
Furthermore in combination with an upcoming --arch switch it may enable to download packages on a server to be installed on another system/machine.
f.i. the ati repo can not be browsed via http so that it is necessary to download packages from it via zypper rather than a web browser.

icons/user_comment.png M. A. wrote: (8 years ago)

libzypp-6.11.0 allows to set different download policies in ZYppCommitPolicy
(DownloadOnly, DownloadInAdvance, DownloadInHeaps, DownloadAsNeeded).

icons/user_comment.png R. U. wrote: (8 years ago)

As in factory zypper is 1.2.2 as of now:

I searched how to handle ZYppCommitPolicy - I didn't find any documentation about. Shouldn't there?

icons/user_comment.png J. K. wrote: (8 years ago)

Please read more thoroughly. Comment #17 does not mention zypper, but libzypp. It was an information for developers using libzypp. As for zypper, the only thing that has been added in regard of commit policy so far, is the --download-only option, but in 1.2.3, not 1.2.2! It will be documented in zypper's man page, and its help texts (e.g. zypper help install).

icons/user_comment.png M. V. wrote: (8 years ago)

I have bumped the version to zypper-1.2.3 (in home:mvidner, SRI 19048 to zypp:Head).
It implements --download-only.

icons/user_comment.png J. K. wrote: (8 years ago)

Done also in zypper (--download-only/-d added to several commands). To be in zypper 1.2.3

icons/user_comment.png R. U. wrote: (8 years ago)

zypper version halted at 1.2.2 ever since?

I would really like this feature in openSUSE-11.2

And status is done for openSUSE-11.2

Last change: 8 years ago
Score: 21
  • Negative: 2
  • Neutral: 0
  • Positive: 23
Feature Export
Application-xmlXML   Text-x-logPlaintext   PrinterPrint