[opensuse-factory] suggested work around for zypper/libzypp
Maybe you are already thinking on it, but I didn't read any comments about it. This will be a little enhancement for 11.0. On current versions, using zypper to update is a bit dangerous when a lot of packages are involved. For instance, zypper install the new packages removing the old one immediately after download, if for some reason the process can't finish ok (network problems, broken packages) is possible to finish with a non working system. IMHO, using the 'smart' approach would be better. First download all packages (keeping them on a special location), and after finishing the download, install them. If a problem occur during the download phase, just retry from the last successful downloaded package. Having the choice to keep the downloaded files would be useful too if someone want to update another system without the need to download all again. Best regards. --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Wednesday 2007-10-03 at 19:28 -0300, Gabriel . wrote:
This will be a little enhancement for 11.0.
On current versions, using zypper to update is a bit dangerous when a lot of packages are involved. For instance, zypper install the new packages removing the old one immediately after download, if for some reason the process can't finish ok (network problems, broken packages) is possible to finish with a non working system.
Another improvement could be to generate a list of things to download, then do the actual download on another machine, and somehow convert to a patch dvd. This would help people not having fast network on their machine. Another would be not deleting downloaded patches (on request), and a method to reuse them on machines of the same network, and thus reduce bandwidth. This was possible up to suse 10.0, I think. Granted, this requires enough disk space for the operation. Maybe both aproaches would be necesary (download/install one by one versus all). Would that be feasible?
IMHO, using the 'smart' approach would be better. First download all packages (keeping them on a special location), and after finishing the download, install them. If a problem occur during the download phase, just retry from the last successful downloaded package. Having the choice to keep the downloaded files would be useful too if someone want to update another system without the need to download all again.
Just so. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFHBCTVtTMYHG2NR9URAlDdAKCNT6VpsWEYqujovAWPvuO2ueA+TACfcdm/ 9rcSUoR0Ema5X5aZXJLeEkY= =TITv -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Gabriel . escribió:
IMHO, using the 'smart' approach would be better.
No, you end having almost the same problem.. We have explained this many times, smart is **no** model to follow for a package manager, it is inconsistent and it does **not work** properly in 64 bit.
First download all packages (keeping them on a special location), and after finishing the download, install them.
that is called "transaction", I suspect that there is a good reason why it is not implemented the way you suggest. If a problem occur during the download phase,
just retry from the last successful downloaded package.
and it should "resume" a download as well ;)
Having the choice to keep the downloaded files would be useful too if someone want to update another system without the need to download all again.
IF you need to update more than one system, then rsync the update tree and pragate updates via NFS or something. --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
El Jueves, 4 de Octubre de 2007 06:01:47 Cristian Rodriguez escribió:
Gabriel . escribió:
IMHO, using the 'smart' approach would be better.
No, you end having almost the same problem.. We have explained this many times, smart is **no** model to follow for a package manager, it is inconsistent and it does **not work** properly in 64 bit.
Cristian, that is what does **not work** properly in 64 bit? Are you meaning smart (or apt) implementation itself or is it about download first / install later concept? In any case, where can I find documentation on these arguments against smart (and maybe apt) as a package manager model? Regards. Miquel --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Cristian Rodriguez escribió:
IMHO, using the 'smart' approach would be better.
No, you end having almost the same problem.. We have explained this many times, smart is **no** model to follow for a package manager, it is inconsistent and it does **not work** properly in 64 bit.
I'm not telling doing as smart. What the download model has to do with 64 bit???
First download all packages (keeping them on a special location), and after finishing the download, install them.
that is called "transaction", I suspect that there is a good reason why it is not implemented the way you suggest.
If there is a good reason, I would like to know which is it.
If a problem occur during the download phase,
just retry from the last successful downloaded package.
and it should "resume" a download as well ;)
Sure.
Having the choice to keep the downloaded files would be useful too if someone want to update another system without the need to download all again.
IF you need to update more than one system, then rsync the update tree and pragate updates via NFS or something.
What if you don't want to update all the packages, but just some group of them. It has not sense rsync the entire update tree. Best regards. --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Čet, 2007-10-04 at 07:48 -0300, Gabriel wrote:
Cristian Rodriguez escribió:
First download all packages (keeping them on a special location), and after finishing the download, install them. that is called "transaction", I suspect that there is a good reason why it is not implemented the way you suggest. If there is a good reason, I would like to know which is it.
Me too. I must say I didn't figure what's the purpose of that approach. For instance, Yum also downloads all the packages first, then updates them. Since I'm still officially a Fedora user (I'll switch to openSUSE 10.3 over the weekend), I'm quite familiar with Yum. And the funny thing is that Fedora developers also don't like SmartPM very much.
If a problem occur during the download phase,
just retry from the last successful downloaded package. and it should "resume" a download as well ;) Sure.
But what if we broke dependencies because of stop downloading? -- Igor Jagec
Dňa Thursday 04 October 2007 14:27:20 Igor Jagec ste napísal:
On Čet, 2007-10-04 at 07:48 -0300, Gabriel wrote:
Cristian Rodriguez escribió:
First download all packages (keeping them on a special location), and after finishing the download, install them.
that is called "transaction", I suspect that there is a good reason why it is not implemented the way you suggest.
If there is a good reason, I would like to know which is it.
Me too. I must say I didn't figure what's the purpose of that approach. For instance, Yum also downloads all the packages first, then updates them. Since I'm still officially a Fedora user (I'll switch to openSUSE 10.3 over the weekend), I'm quite familiar with Yum. And the funny thing is that Fedora developers also don't like SmartPM very much.
The most important feature for download and install is that you can operate under very restricted situations, e.g. disk and memory requirements. I agree that on a running system, this is not the most effective approach. What needs to be determined is to figure out how much space you can spare to download the packages and this is not very easy to do. Just imagine a package that will need to create a big new file in its post-install script (think initrd for a new kernel). You can hardly predict, only to use heuristics. Stano --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
2007/10/4, Stanislav Visnovsky
The most important feature for download and install is that you can operate under very restricted situations, e.g. disk and memory requirements.
I agree that on a running system, this is not the most effective approach. What needs to be determined is to figure out how much space you can spare to download the packages and this is not very easy to do. Just imagine a package that will need to create a big new file in its post-install script (think initrd for a new kernel). You can hardly predict, only to use heuristics.
I agree, but it could be an option (where the user configures the repos) to choose what method will be used. There's no need to remove the actual behavior, but adding a new one an let the user select which want to use. Best regards. --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Dňa Thursday 04 October 2007 15:00:44 Gabriel . ste napísal:
2007/10/4, Stanislav Visnovsky
: The most important feature for download and install is that you can operate under very restricted situations, e.g. disk and memory requirements.
I agree that on a running system, this is not the most effective approach. What needs to be determined is to figure out how much space you can spare to download the packages and this is not very easy to do. Just imagine a package that will need to create a big new file in its post-install script (think initrd for a new kernel). You can hardly predict, only to use heuristics.
I agree, but it could be an option (where the user configures the repos) to choose what method will be used.
There's no need to remove the actual behavior, but adding a new one an let the user select which want to use.
Yes, I agre with configurability of the behavior and also the default to 'try to install as much as possible together' on the running system. The original question was 'give me a strong argument why it behaves this way' ;-) Stano --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Thursday 2007-10-04 at 10:00 -0300, Gabriel . wrote:
I agree that on a running system, this is not the most effective approach. What needs to be determined is to figure out how much space you can spare to download the packages and this is not very easy to do. Just imagine a package that will need to create a big new file in its post-install script (think initrd for a new kernel). You can hardly predict, only to use heuristics.
I agree, but it could be an option (where the user configures the repos) to choose what method will be used.
Remember that till suse 10.0 that was what was done. Yast first downloaded all, then installed all, then removed or kept (user option) all files. The point is to reinstate the old behaviour. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFHBPettTMYHG2NR9URAjA/AJ99sNTW6sfpIU32/iFTNvKK+Zt9OACfSXpb SfoCocz1QfwpJR3pKc02/DQ= =ZDUU -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Dňa Thursday 04 October 2007 16:24:43 Carlos E. R. ste napísal:
The Thursday 2007-10-04 at 10:00 -0300, Gabriel . wrote:
I agree that on a running system, this is not the most effective approach. What needs to be determined is to figure out how much space you can spare to download the packages and this is not very easy to do. Just imagine a package that will need to create a big new file in its post-install script (think initrd for a new kernel). You can hardly predict, only to use heuristics.
I agree, but it could be an option (where the user configures the repos) to choose what method will be used.
Remember that till suse 10.0 that was what was done. Yast first downloaded all, then installed all, then removed or kept (user option) all files.
The point is to reinstate the old behaviour.
Are you sure about this? Stano --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Thu, 2007-10-04 at 16:36 +0200, Stanislav Visnovsky wrote:
Dňa Thursday 04 October 2007 16:24:43 Carlos E. R. ste napísal:
The Thursday 2007-10-04 at 10:00 -0300, Gabriel . wrote:
I agree that on a running system, this is not the most effective approach. What needs to be determined is to figure out how much space you can spare to download the packages and this is not very easy to do. Just imagine a package that will need to create a big new file in its post-install script (think initrd for a new kernel). You can hardly predict, only to use heuristics.
I agree, but it could be an option (where the user configures the repos) to choose what method will be used.
Remember that till suse 10.0 that was what was done. Yast first downloaded all, then installed all, then removed or kept (user option) all files.
The point is to reinstate the old behaviour.
Are you sure about this?
Stano
I would prefer it , if only as a choice. Netware has always done it this way to preserve the ability to back rev a file or the whole system in case of failure or conflict between the "update" and another piece of software installed. -- James Tremblay Director of Technology Newmarket School District 213 S. Main st Newmarket NH, 03857 603-659-3271 *318 CNE 3,4,5 MCSE w2k CLE in training Registered Linux user #440182 http://en.opensuse.org/educationk --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Stanislav Visnovsky wrote:
Dňa Thursday 04 October 2007 16:24:43 Carlos E. R. ste napísal:
The Thursday 2007-10-04 at 10:00 -0300, Gabriel . wrote:
I agree that on a running system, this is not the most effective approach. What needs to be determined is to figure out how much space you can spare to download the packages and this is not very easy to do. Just imagine a package that will need to create a big new file in its post-install script (think initrd for a new kernel). You can hardly predict, only to use heuristics.
I agree, but it could be an option (where the user configures the repos) to choose what method will be used.
Remember that till suse 10.0 that was what was done. Yast first downloaded all, then installed all, then removed or kept (user option) all files.
The point is to reinstate the old behaviour.
Are you sure about this?
He is right, but only in YOU mode. In YOU mode first all packages where downloaded, then all deltas applied, finally all packages got installed. This way you could go offline after download was finished (unless you used the nvidia, fonts etc. pseudo update). Normal installation and distro upgrade always downloaded and installed one package at a time. cu Ludwig -- (o_ Ludwig Nussel //\ V_/_ http://www.suse.de/ SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Ludwig Nussel escribió:
He is right, but only in YOU mode. In YOU mode first all packages where downloaded, then all deltas applied, finally all packages got installed.
Yes, but was not a transaction the way yum or smart do ;) --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Thursday 2007-10-04 at 16:36 +0200, Stanislav Visnovsky wrote:
Remember that till suse 10.0 that was what was done. Yast first downloaded all, then installed all, then removed or kept (user option) all files.
The point is to reinstate the old behaviour.
Are you sure about this?
In 9.3, absolutely. There was a directory tree we could copy over to another machine or dvd, and the other machine would then skip downloading the files it found in the directory tree, that had the same structure as the ftp tree, if I remember correctly. The method and directory has changed a bit from version to version, but it was similar for suse 7, 8, 9... There was a tick box to keep or remove the downloaded packages. I don't remember if this was only done for deltas or not (I used deltas). With deltas the directory was large: it kept the deltas, patches, and reconstructed rpms. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFHBTn2tTMYHG2NR9URAoq8AJ4mR8bWuWx+SXDlgHPOLyCbend79QCfcvLu hZH0897RDTTLdMaU8MutIbM= =7rnu -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Dňa Thursday 04 October 2007 21:07:33 Carlos E. R. ste napísal:
The Thursday 2007-10-04 at 16:36 +0200, Stanislav Visnovsky wrote:
Remember that till suse 10.0 that was what was done. Yast first downloaded all, then installed all, then removed or kept (user option) all files.
The point is to reinstate the old behaviour.
Are you sure about this?
In 9.3, absolutely.
There was a directory tree we could copy over to another machine or dvd, and the other machine would then skip downloading the files it found in the directory tree, that had the same structure as the ftp tree, if I remember correctly. The method and directory has changed a bit from version to version, but it was similar for suse 7, 8, 9...
There was a tick box to keep or remove the downloaded packages.
I don't remember if this was only done for deltas or not (I used deltas). With deltas the directory was large: it kept the deltas, patches, and reconstructed rpms.
To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Čet, 2007-10-04 at 14:40 +0200, Stanislav Visnovsky wrote:
Me too. I must say I didn't figure what's the purpose of that approach. For instance, Yum also downloads all the packages first, then updates them. Since I'm still officially a Fedora user (I'll switch to openSUSE 10.3 over the weekend), I'm quite familiar with Yum. And the funny thing is that Fedora developers also don't like SmartPM very much. The most important feature for download and install is that you can operate under very restricted situations, e.g. disk and memory requirements. I agree that on a running system, this is not the most effective approach. What needs to be determined is to figure out how much space you can spare to download the packages and this is not very easy to do. Just imagine a package
Dňa Thursday 04 October 2007 14:27:20 Igor Jagec ste napísal: that will need to create a big new file in its post-install script (think initrd for a new kernel). You can hardly predict, only to use heuristics.
Thanks for the answer. I'm surely gonna test it as soon as I totally switch to openSUSE 10.3, most likely over the weekend. Since I've never used unsupported tools for managing packages, I'm definitely gonna use Zypper on openSUSE. BTW what is the difference between 'zypper update' and 'zypper update -t package? Which one of these 2 commands is used by GNOME/KDE update applet? Is it possible for Zypper to remove packages if it doesn't met dependencies? I'm just asking that in case I decide to update my system manually :) Cheers! -- Igor Jagec
On Thursday 04 October 2007 06:35:28 pm Igor Jagec wrote: ...
BTW what is the difference between 'zypper update' and 'zypper update -t package?
'zypper update' == 'zypper update -t patch'
Which one of these 2 commands is used by GNOME/KDE update applet?
Whatever is for patches :-)
Is it possible for Zypper to remove packages if it doesn't met dependencies? I'm just asking that in case I decide to update my system manually :)
It will not install packages that doesn't meet dependencies. All checks are done in advance as you will notice. -- Regards, Rajko. --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Čet, 2007-10-04 at 19:08 -0500, Rajko M. wrote:
On Thursday 04 October 2007 06:35:28 pm Igor Jagec wrote:
BTW what is the difference between 'zypper update' and 'zypper update -t package? 'zypper update' == 'zypper update -t patch'
Meaning, the patch option pulls delta rpms? I saw some .delta.rpm and .patch.rpm packages in Zypper's output so I'm asking :) If so, that's great because, as I figured, that consumes less bandwidth :)
Which one of these 2 commands is used by GNOME/KDE update applet? Whatever is for patches :-)
I experienced some package removal while I was playing with that applet on Factory, so I was just asking :)
It will not install packages that doesn't meet dependencies. All checks are done in advance as you will notice.
That's great, thanks! -- Igor Jagec
Igor Jagec escribió:
On Čet, 2007-10-04 at 19:08 -0500, Rajko M. wrote:
On Thursday 04 October 2007 06:35:28 pm Igor Jagec wrote:
BTW what is the difference between 'zypper update' and 'zypper update -t package? 'zypper update' == 'zypper update -t patch'
Meaning, the patch option pulls delta rpms? I saw some .delta.rpm and .patch.rpm packages in Zypper's output so I'm asking :)
zypp knows 5 different types or "resolvables" package - all RPM packages including patch and delta packages patch - update of the packages, it can include special scripts and messages pattern - group of packages language - group of packages with language support product - group of packages, which are necessary to install a product "zypper update" just updates patches, "zypper up -t package" works with packages. see zypper(8) for more information. --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Thursday 04 October 2007 08:33:19 pm Igor Jagec wrote:
On Čet, 2007-10-04 at 19:08 -0500, Rajko M. wrote:
On Thursday 04 October 2007 06:35:28 pm Igor Jagec wrote:
BTW what is the difference between 'zypper update' and 'zypper update -t package?
'zypper update' == 'zypper update -t patch'
Meaning, the patch option pulls delta rpms? I saw some .delta.rpm and .patch.rpm packages in Zypper's output so I'm asking :)
The .delta.rpm is a way to deliver patches. When is used delta vs. rpm that can answer some of YaST/zypper guys. This is from 'man zypper': ------------------------------ Package Management Commands zypper works with several types of resource objects, called resolvables. A resolvable is a package, patch, pattern, language, or a product. package - all RPM packages including patch and delta packages patch - update of the packages, it can include special scripts and messages pattern - group of packages language - group of packages with language support product - group of packages, which are necessary to install a product ------------------------------
If so, that's great because, as I figured, that consumes less bandwidth :)
Which one of these 2 commands is used by GNOME/KDE update applet?
Whatever is for patches :-)
I experienced some package removal while I was playing with that applet on Factory, so I was just asking :)
Removal will happen if package is listed for removal in rpm, but how it lands in that list can answer some of guys that actually do packaging.
It will not install packages that doesn't meet dependencies. All checks are done in advance as you will notice.
That's great, thanks!
-- Regards, Rajko. --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Rajko M. wrote:
On Thursday 04 October 2007 08:33:19 pm Igor Jagec wrote:
On ÄŒet, 2007-10-04 at 19:08 -0500, Rajko M. wrote:
On Thursday 04 October 2007 06:35:28 pm Igor Jagec wrote:
BTW what is the difference between 'zypper update' and 'zypper update -t package? 'zypper update' == 'zypper update -t patch' Meaning, the patch option pulls delta rpms? I saw some .delta.rpm and .patch.rpm packages in Zypper's output so I'm asking :)
The .delta.rpm is a way to deliver patches. When is used delta vs. rpm that can answer some of YaST/zypper guys.
This is from 'man zypper': ------------------------------ Package Management Commands zypper works with several types of resource objects, called resolvables. A resolvable is a package, patch, pattern, language, or a product.
package - all RPM packages including patch and delta packages patch - update of the packages, it can include special scripts and messages pattern - group of packages language - group of packages with language support product - group of packages, which are necessary to install a product ------------------------------
If so, that's great because, as I figured, that consumes less bandwidth :)
Which one of these 2 commands is used by GNOME/KDE update applet? Whatever is for patches :-) I experienced some package removal while I was playing with that applet on Factory, so I was just asking :)
Removal will happen if package is listed for removal in rpm, but how it lands in that list can answer some of guys that actually do packaging.
It will not install packages that doesn't meet dependencies. All checks are done in advance as you will notice. That's great, thanks!
In the last day or so I got a reply on the list, create a list of packages you want to be locked, e.g. # less /etc/zypp/locks libmtp amarok libxine1 libxine1-devel glabels audacity In my previous update without the locks file, some of the above packages were removed, but weren't in my latest updates on 2 boxes. Regards Sid. -- Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support Specialist, Cricket Coach Microsoft Windows Free Zone - Linux used for all Computing Tasks --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Dňa Friday 05 October 2007 04:13:09 Rajko M. ste napísal:
On Thursday 04 October 2007 08:33:19 pm Igor Jagec wrote:
On Čet, 2007-10-04 at 19:08 -0500, Rajko M. wrote:
On Thursday 04 October 2007 06:35:28 pm Igor Jagec wrote:
BTW what is the difference between 'zypper update' and 'zypper update -t package?
'zypper update' == 'zypper update -t patch'
Meaning, the patch option pulls delta rpms? I saw some .delta.rpm and .patch.rpm packages in Zypper's output so I'm asking :)
The .delta.rpm is a way to deliver patches.
openSUSE use it for patches, correct.
When is used delta vs. rpm that can answer some of YaST/zypper guys.
They are used whenever they are available in the repository (repomd). So, in principle, it would be possible to have also delta RPMs for factory against the last release version (although this does not make sense in a real life due to space constraints etc). Stano --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Čet, 2007-10-04 at 14:40 +0200, Stanislav Visnovsky wrote:
Me too. I must say I didn't figure what's the purpose of that approach. For instance, Yum also downloads all the packages first, then updates them. Since I'm still officially a Fedora user (I'll switch to openSUSE 10.3 over the weekend), I'm quite familiar with Yum. And the funny thing is that Fedora developers also don't like SmartPM very much. The most important feature for download and install is that you can operate under very restricted situations, e.g. disk and memory requirements. I agree that on a running system, this is not the most effective approach. What needs to be determined is to figure out how much space you can spare to download the packages and this is not very easy to do. Just imagine a package
Dňa Thursday 04 October 2007 14:27:20 Igor Jagec ste napísal: that will need to create a big new file in its post-install script (think initrd for a new kernel). You can hardly predict, only to use heuristics.
Thanks for the answer. I'm surely gonna test it as soon as I totally switch to openSUSE 10.3, most likely over the weekend. Since I've never used unsupported tools for managing packages, I'm definitely gonna use Zypper on openSUSE. BTW what is the difference between 'zypper update' and 'zypper update -t package? Which one of these 2 commands is used by GNOME/KDE update applet? Is it possible for Zypper to remove packages if it doesn't met dependencies? I'm just asking that in case I decide to update my system manually :) Cheers! -- Igor Jagec
On 2007-10-04 14:27:20 +0200, Igor Jagec wrote:
On Čet, 2007-10-04 at 07:48 -0300, Gabriel wrote:
Cristian Rodriguez escribió:
First download all packages (keeping them on a special location), and after finishing the download, install them. that is called "transaction", I suspect that there is a good reason why it is not implemented the way you suggest. If there is a good reason, I would like to know which is it.
Me too. I must say I didn't figure what's the purpose of that approach. For instance, Yum also downloads all the packages first, then updates them. Since I'm still officially a Fedora user (I'll switch to openSUSE 10.3 over the weekend), I'm quite familiar with Yum. And the funny thing is that Fedora developers also don't like SmartPM very much.
than i just hope you dont run it on x86_64. if you do... you might want to add alias yum="yum --exclude=\*i586\*" to your shell rc file. otherwise you will get a lot of crap installed on your system. in regards of biarch support zypper/yast still beats smart and yum. darix -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Čet, 2007-10-04 at 14:52 +0200, Marcus Rueckert wrote:
Me too. I must say I didn't figure what's the purpose of that approach. For instance, Yum also downloads all the packages first, then updates them. Since I'm still officially a Fedora user (I'll switch to openSUSE 10.3 over the weekend), I'm quite familiar with Yum. And the funny thing is that Fedora developers also don't like SmartPM very much.
On 2007-10-04 14:27:20 +0200, Igor Jagec wrote: than i just hope you dont run it on x86_64.
Nope :) To be honest, I've never liked Yum very much because it is very slow. Speaking about performance, Zypper is much faster than Yum.
in regards of biarch support zypper/yast still beats smart and yum.
That's very nice to know, thanks! -- Igor Jagec
On Thursday 04 October 2007 12:01:47 am Cristian Rodriguez wrote:
that is called "transaction", I suspect that there is a good reason why it is not implemented the way you suggest.
Ok, but what is the good reason? I agree that Smart is not a good model to follow due to the weaknesses in package resolution (particularly for multi-arch), but what is wrong with downloading all packages prior to installing? Frankly, in my previous experiences with factory testing over the last few versions, I have had a couple of cases where Yast crapped out during and update-all, being unable to install certain packages, and I wound up with a partially broken system after that required some sleeve-rolling-up to resolve. Nothing I would have opened a ticket for, since mirror synchronicity is sometimes a crapshoot, but frustrating none the less since it could have been avoided. I don't buy the disk space argument, that is easy enough to pre-determine before an upgrade, so I'm not sure why Yast doesn't operate this way. Really, it seems to make sense... Download all the packages into a cache, and then install them. That way if the download is interrupted (or mirrors are out of synch), the download can be resumed after, and the package upgrades won't happen until all of the packages are actually available locally. Just my 2c... Cheers, KV --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
* Kevin Valko
On Thursday 04 October 2007 12:01:47 am Cristian Rodriguez wrote:
that is called "transaction", I suspect that there is a good reason why it is not implemented the way you suggest.
Ok, but what is the good reason? I agree that Smart is not a good model to follow due to the weaknesses in package resolution (particularly for multi-arch), but what is wrong with downloading all packages prior to installing?
It depends on the number of packages. For a normal maintenance update with only a handful of packages, download all is probably a good strategy. With distribution upgrade (i.e. 10.2->10.3) or factory update with hundreds of packages, you'll need quite some disk space ;-)
I don't buy the disk space argument, that is easy enough to pre-determine before an upgrade, so I'm not sure why Yast doesn't operate this way.
Whats the exit strategy if the disk space is not sufficient ? We probably do not want to code, debug, test and maintain two different strategies. We are evaluating extensions to the current 'download one, install one' strategy for the next OpenSUSE version and will post results to this list. Klaus --- SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Klaus Kaempf escribió:
Whats the exit strategy if the disk space is not sufficient ?
smart (or rather Python last time I checked) was to SIGSEGV :P
We probably do not want to code, debug, test and maintain two different strategies.
indeed . mantaining two strategies does not make much sense, it is better to have only one, working way. ;) --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Pon, 2007-10-08 at 11:11 +0200, Klaus Kaempf wrote:
We probably do not want to code, debug, test and maintain two different strategies.
I've noticed that I can update my system and run rpmbuild command at the same time. That's a nice feature :)
We are evaluating extensions to the current 'download one, install one' strategy for the next OpenSUSE version and will post results to this list.
Do you evaluate extensions for repo priorities? Something like protectbase plugin for Yum? I've experienced some dependency issues with Packman repository, but Packman packager does not use Zypper as myself, he uses SmartPM (which can handle situations like that). I told him that openSUSE developers does not recommend SmartPM so he rebuild these packages in order to resolve conflicts. I think that feature would be very important for Zypper. Cheers! -- Igor Jagec
* Igor Jagec
Do you evaluate extensions for repo priorities?
Yes. We will certainly have the ability to prioritize repositories in the future. Klaus --- SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Mon 08 Oct 2007 22:11:52 NZDT +1300, Klaus Kaempf wrote:
It depends on the number of packages. For a normal maintenance update with only a handful of packages, download all is probably a good strategy.
With distribution upgrade (i.e. 10.2->10.3) or factory update with hundreds of packages, you'll need quite some disk space ;-)
Uhhmm, like, 4.2GB tops, that being the size of the DVD which is a fits-all? What's the smallest disk you can buy these days, 80GB? 120GB?
Whats the exit strategy if the disk space is not sufficient ?
Display a warning before starting. Size of all packages/files to download is known before download begins. There is df. What I would like to see is the creation of a download cache which can be copied/shared with other hosts (which would imply it's not created at /var/lib/random/phaseofmoon/day-of-week/yast/). The cache only contains what's needed at least once, not the whole shebang. Debian (so I believe) hits the nail square on the head there. Volker -- Volker Kuhlmann is list0570 with the domain in header http://volker.dnsalias.net/ Please do not CC list postings to me. --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
* Volker Kuhlmann
On Mon 08 Oct 2007 22:11:52 NZDT +1300, Klaus Kaempf wrote:
It depends on the number of packages. For a normal maintenance update with only a handful of packages, download all is probably a good strategy.
With distribution upgrade (i.e. 10.2->10.3) or factory update with hundreds of packages, you'll need quite some disk space ;-)
Uhhmm, like, 4.2GB tops, that being the size of the DVD which is a fits-all? What's the smallest disk you can buy these days, 80GB? 120GB?
Hehe. Disks are always 99% full, no matter the size ;-) Actually, my Laptop (with 60GB disk) runs with Xen and a couple of LVM partitions each approx. 80% used. The maximum space left is less than a gig. Bottom line: There are pros and cons for both approaches.
Whats the exit strategy if the disk space is not sufficient ?
Display a warning before starting. Size of all packages/files to download is known before download begins. There is df.
Sure. But what to do if the size is not sufficient ?
What I would like to see is the creation of a download cache which can be copied/shared with other hosts (which would imply it's not created at /var/lib/random/phaseofmoon/day-of-week/yast/). The cache only contains what's needed at least once, not the whole shebang. Debian (so I believe) hits the nail square on the head there.
And we're determined to implement such a cache in the next version of OpenSUSE. Klaus --- SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
participants (15)
-
Carlos E. R.
-
Cristian Rodriguez
-
Gabriel
-
Gabriel .
-
Igor Jagec
-
James Tremblay
-
Kevin Valko
-
Klaus Kaempf
-
Ludwig Nussel
-
Marcus Rueckert
-
Miquel A. Noguera
-
Rajko M.
-
Sid Boyce
-
Stanislav Visnovsky
-
Volker Kuhlmann