Bug 448040

Summary: Yast2 should download all the packages first, and then install them.
Product: [openSUSE] openSUSE 11.1 Reporter: Luis Augusto Fretes Cuevas <augustofretes>
Component: YaST2Assignee: Jiri Srain <jsrain>
Status: RESOLVED FEATURE QA Contact: Jiri Srain <jsrain>
Severity: Enhancement    
Priority: P5 - None CC: forgotten_qMyteedNxa, kailed, lavrinenko_alex
Version: Factory   
Target Milestone: ---   
Hardware: x86-64   
OS: SUSE Other   
See Also: https://fate.suse.com/305624
Whiteboard:
Found By: Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Luis Augusto Fretes Cuevas 2008-11-24 06:31:12 UTC
I was updating OpenSUSE 11.1 as I do always but light puffed away. Since around a 25% of the new packages were already installed this created a terrible conflict leaving a lot of my installation useless, and that include my internet connection. Yast2 shouldn't install packages until everything is downloaded. 

BTW: This isn't the first time I experimented something like this.
Comment 1 Forgotten User qMyteedNxa 2008-11-24 12:16:20 UTC
yes, i also think this is an issue.

but you can probably do that, see:

http://lizards.opensuse.org/2008/10/30/how-survive-zypper-dup-on-system-with-bad-internet-connection/

i`d appreciate it if users could choose between "download all before install (safe, but consuming disk)" and "install at once (unsafe, but less storage required)
 
Comment 2 Jan Kupec 2008-11-24 14:12:37 UTC
This is an issue especially when updating (from both the installation system or and the installed system).

Several things come to my mind regarding this:

- libzypp needs to support this, of course
  (already planned, see FATE #302159)

- yast should use 'download all, install all' pattern wherever possible:
  * installation should be tweaked so that whenever a suitable storage device
    is available, it should be used to cache the packages (presumably
    the root partition being updated, but not necessarily) => libzypp
    must allow apps to choose the desired mode + it should report if there
    is not enough space available on the device.
  * on an installed system, 'download all, install all' should be used
    by default (i.e. also in zypper) => set in zypp.conf.

Jirko, the libzypp part is tracked in FATE #302159 (and elsewhere). Another FATE entry should be created for this request, since this is not trivial to do even with libzypp part ready and we must discuss what to do and what not.
Comment 3 Michael Schröder 2008-11-24 14:28:59 UTC
Huh, "download all, install all" should *not* be the default:

- it needs much more disk space
- it makes the "download next package while installing" feature impossible.
Comment 4 Forgotten User qMyteedNxa 2008-11-24 14:37:11 UTC
but diskspace is cheap and after installation, zypper could ask the user to keep or delete that stuff - i think "safety first" is the better default strategy.

anyway - it should be left up to the user if he want`s the safe, but slow and diskspace consuming approach or the quicker one, which imposes risks....
Comment 5 Jan Kupec 2008-11-24 15:00:06 UTC
I agree with Roland. And regarding the parallel download & install - anyone will be free to enable that feature anytime the want. But 'download all, install all', as a safer option, should be the default.
Comment 6 Daniele Tombolini 2008-11-24 19:36:11 UTC
+1 for "safety first".
Comment 7 Alexander Lavrinenko 2008-11-26 12:02:02 UTC
Please consider also deleting of obsolete packages at very last stage - twice i ran into condition when obsolete library package was deleted first and this deadlocked update because not yet updated rpm and zypper where linked against removed obsolete lib package.
Comment 8 Jiri Srain 2009-01-06 09:38:46 UTC
I've created fate #305624 (I did not find any requresting 'download all first'); this should be tackled within the commit rewrite.