Bug 684104

Summary: release notes: zypper downloads first
Product: [openSUSE] openSUSE 11.4 Reporter: Karl Eichwalder <ke>
Component: Release NotesAssignee: Karl Eichwalder <ke>
Status: RESOLVED FIXED QA Contact: Stephan Kulow <coolo>
Severity: Enhancement    
Priority: P3 - Medium CC: mvidner, nettezzaumanaa, suse-beta
Version: Factory   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard: maint:released:11.4:40494
Found By: Documentation Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 683822    

Description Karl Eichwalder 2011-03-31 12:28:23 UTC
+++ This bug was initially created as a clone of Bug #675841 +++

3.Daniel Pecka 2011-03-01 14:12:53 UTC

[...]
3) zypper changes behaviour to that it first downloads all stuff to some $tmp
and installs then - this is very important because it now needs much more space
in case of bigger update|installation - previous behaviour was that zypper
installed transactionaly - download one -> install -> delete ..

[...

Comment 9 Karl Eichwalder 2011-03-03 07:12:34 UTC

I do not see that these features will cause trouble.

I guess, 3) is implemented sanely.  It will probably stop downloading if it is
running short on space.[edited]

[...]
Comment 10 Christian Boltz 2011-03-31 12:11:35 UTC

(In reply to comment #9)  (zypper)

IIRC there was some discussion that this behaviour (or at least checking the
disk space in advance) would be a good feature - which probably means it is not
implemented in 11.4. As I said: IIRC - so please ask a zypp developer to be
sure. (He'll also tell you how to change the behaviour, which would also be
worth a sentence in the release notes.)

=============================================================================

Thanks for the additional info, Christian!
Comment 1 Karl Eichwalder 2011-03-31 12:54:55 UTC
I propose something as follows (Michel, please provide more info, esp. how to switch back to the old behavior):

Installing with Zypper Needs More Space
=======================================

The Zypper installation behavior has been changed: It first downloads all packages, before it starts installing them.  This means, it now needs more disk space, when it processed one package after the other.

If you are short on disk space, set .....
Comment 2 Michael Andres 2011-04-01 08:36:27 UTC
The download mode applies to all applications using libzypp (zypper,yast,PK,..).


Zypper cmdline supports e.g:

           --download-in-advance
              First download all packages, ten start installing.

           --download-as-needed
              Download one package, install it immediately, and continue with 
              the rest until all are installed.


The global default can be set in /etc/zypp/zypp.conf:
##
## Commit download policy to use as default.
##
##  DownloadOnly,       Just download all packages to the local cache.
##                      Do not install. Implies a dry-run.
##
##  DownloadInAdvance,  First download all packages to the local cache.
##                      Then start to install.
##
##  DownloadInHeaps,    Similar to DownloadInAdvance, but try to split
##                      the transaction into heaps, where at the end of
##                      each heap a consistent system state is reached.
##
##  DownloadAsNeeded    Alternating download and install. Packages are
##                      cached just to avid CD/DVD hopping. This is the
##                      traditional behaviour.
##
##  <UNSET>             If a value is not set, empty or unknown, we pick
##                      some save default.
##
## commit.downloadMode =


The traditional behavior would be:
  
  commit.downloadMode = DownloadAsNeeded
Comment 3 Karl Eichwalder 2011-04-01 12:37:19 UTC
Thanks, here is my proposal (fixed in SVN):

  <!-- bnc#684104 -->
  <sect3 id="upg.download" status="2011-04-01">
   <title>Default Download Mode Needs More Space</title>

   <para>
The Zypp download mode for package installation has been changed: It first
downloads all packages, before it starts installing them.  This means, it now
needs more disk space.  The traditional behavior was to process one package
after the other.</para>

   <para>
If you are short on disk space, switch back to the traditional behavior by
setting <literal>commit.downloadMode = DownloadAsNeeded</literal> in
<filename>/etc/zypp/zypp.conf</filename>.</para>
  </sect3>
Comment 4 Swamp Workflow Management 2011-05-03 13:01:30 UTC
Update released for: release-notes-openSUSE
Products:
openSUSE 11.4 (i586)