[opensuse] Will YAST2 or zypper overwrite already downloaded updates?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I've got 11.2 installed and updated on one box and I plan to do the same to another box this week. Both boxes are similar enough and I haven't yet fetched anything machine or device specific. I have YAST set to keep all downloaded files in the zypper cache directories. I intend to copy that cache to the second box after installing 11.2 and then doing an online update. This might be the easiest way to get box #2 updated. I have only one high-cost link to use for updates. It's also by far the fastest link. The total disk space used for the updates is about 1.2Gb. Takes 7+ hours to download & install updates. I don't want to spend more time and money on downloading identical files a second time. In 9.3, if a file existed, YAST would not overwrite the files when doing an online update. In 10.2, it did overwrite already downloaded files. Or at least appeared to. Has anyone using 11.2 successfully tried to copy the zypper cache directory from one box to another? Does anyone know whether or not the existing files will be overwritten or deleted? Also, is there a way to download all updates _before_ installing them? Thanks, == jd While most peoples' opinions change, the conviction of their correctness never does. - -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFL4bfvhpL3F+HeDrIRAlc1AJ9BxpXNEZJjwIVyEW7uu7I5JjpsBwCgh3UE PYl/twf4yfVR8okDFiq/eR0= =zJow -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2010-05-05 20:24, j debert wrote: ...
Has anyone using 11.2 successfully tried to copy the zypper cache directory from one box to another? Does anyone know whether or not the existing files will be overwritten or deleted?
I intend to try that, but I haven't done so yet. My intention is to export the directory via nfs on one machine, and use it on another. Perhaps somebody has done it and documented the process? :-?
Also, is there a way to download all updates _before_ installing them?
In zypper, yes. I forget the syntax, but it appears on the wiki, the page about using zypper to upgrade from distro to new distro version. - -- Cheers / Saludos, Carlos E. R. (from 11.2 x86_64 "Emerald" GM (Elessar)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAkvh3UcACgkQU92UU+smfQUnFgCgjCucNJCtbW0TMOqlxFfPAcE8 k+cAnAiWzvyeoklrryC84za9oJjoqmGQ =xEHb -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed, 05 May, 2010 at 23:04:07 +0200, Carlos E. R. wrote:
On 2010-05-05 20:24, j debert wrote:
...
Has anyone using 11.2 successfully tried to copy the zypper cache directory from one box to another? Does anyone know whether or not the existing files will be overwritten or deleted?
I intend to try that, but I haven't done so yet. My intention is to export the directory via nfs on one machine, and use it on another. Perhaps somebody has done it and documented the process? :-?
You might want to have a look at: http://www.3111skyline.com/linux/openSuSE-LocalUpdate.php David's done a lot of research on the subject, so you might find some useful info. /jon -- YMMV -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 05/06/2010 01:32 AM, Jon Clausen wrote:
On Wed, 05 May, 2010 at 23:04:07 +0200, Carlos E. R. wrote:
On 2010-05-05 20:24, j debert wrote:
...
Has anyone using 11.2 successfully tried to copy the zypper cache directory from one box to another? Does anyone know whether or not the existing files will be overwritten or deleted?
I intend to try that, but I haven't done so yet. My intention is to export the directory via nfs on one machine, and use it on another. Perhaps somebody has done it and documented the process? :-?
You might want to have a look at: http://www.3111skyline.com/linux/openSuSE-LocalUpdate.php
David's done a lot of research on the subject, so you might find some useful info.
Ah, yes. Setting up a local server for updates would likely be better than simple copying. Thanks for the link. ( And thanks to Dave for the info, as well!) == jd Be a better psychiatrist and the world will beat a psychopath to your door. - -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFL4sr9hpL3F+HeDrIRAr7XAJ0Tt1UaOz7a7LIAvcs57jqUMQQenACffLqH MqIy1o/NTAuwXbhhX1izLUI= =1Ysb -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed, May 05, 2010 at 11:04:07PM +0200, Carlos E. R. wrote:
On 2010-05-05 20:24, j debert wrote:
Also, is there a way to download all updates _before_ installing them? In zypper, yes. I forget the syntax, but it appears on the wiki, the page about using zypper to upgrade from distro to new distro version.
/etc/zypp/zypp.conf contains a "commit.downloadMode" option that can be set to "DownloadInAdvance". This changes the behaviour for both zypper and YaST. I haven't tried it so I can't tell you if it works or not. Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 05/06/2010 01:40 AM, Michael Schroeder wrote:
On Wed, May 05, 2010 at 11:04:07PM +0200, Carlos E. R. wrote:
On 2010-05-05 20:24, j debert wrote:
Also, is there a way to download all updates _before_ installing them? In zypper, yes. I forget the syntax, but it appears on the wiki, the page about using zypper to upgrade from distro to new distro version.
/etc/zypp/zypp.conf contains a "commit.downloadMode" option that can be set to "DownloadInAdvance". This changes the behaviour for both zypper and YaST. I haven't tried it so I can't tell you if it works or not.
Thanks. The thought occurs that downloading everything first might be a problem if certain updates must be performed in a specific sequence. Hopefully zypper is smart enough to handle that. == jd The greatest dangers to liberty lurk in insidious encroachment by men of zeal, well-meaning but without understanding. -- Justice Louis D. Brandeis - -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFL4sxQhpL3F+HeDrIRAjDQAKCnW6112b8ejpJvFuRg6DHCal3tWQCfZK+W y0V7TBGAo7qwbuScUgPPowc= =kism -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2010-05-06 16:04, j debert wrote:
On 05/06/2010 01:40 AM, Michael Schroeder wrote:
/etc/zypp/zypp.conf contains a "commit.downloadMode" option that can be set to "DownloadInAdvance". This changes the behaviour for both zypper and YaST. I haven't tried it so I can't tell you if it works or not.
Thanks. The thought occurs that downloading everything first might be a problem if certain updates must be performed in a specific sequence. Hopefully zypper is smart enough to handle that.
Zypper installs things in the required order. For example, if there are a bunch of updates, and one is "libzypp", it will download that one first, install it, exit/restart, download the rest, install the rest. I mean, it doesn't really download everything first; it downloads all it needs to install in this session (not more), then install those. - -- Cheers / Saludos, Carlos E. R. (from 11.2 x86_64 "Emerald" GM (Elessar)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAkvjcG8ACgkQU92UU+smfQVXCACbBPmxWSmFwVfpKKbGzp4hbYvW H2gAn29n1D1Z2/C9lEAeMWjb3QGv4eSI =RT89 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 05/06/2010 06:44 PM, Carlos E. R. wrote:
On 2010-05-06 16:04, j debert wrote:
Thanks. The thought occurs that downloading everything first might be a problem if certain updates must be performed in a specific sequence. Hopefully zypper is smart enough to handle that.
Zypper installs things in the required order.
For example, if there are a bunch of updates, and one is "libzypp", it will download that one first, install it, exit/restart, download the rest, install the rest.
I mean, it doesn't really download everything first; it downloads all it needs to install in this session (not more), then install those.
But would that also be the case when _everything_ has already been downloaded? Maybe I'm just paranoid but I've been burnt by "smart" apps in the past that turned out to be dumber than bag of rocks. That would be neurotic, not paranoid, wouldn't it? I suppose I'll find out for sure one way or another in a few days. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFL5BWNhpL3F+HeDrIRAoGMAJ9CAxeRmur1NjoahEz/dZaAV0wQzgCeP1mH 4V0Atms0cjKhc3stHTQlPso= =H3cb -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2010-05-05 23:04, I wrote:
On 2010-05-05 20:24, j debert wrote:
...
Has anyone using 11.2 successfully tried to copy the zypper cache directory from one box to another? Does anyone know whether or not the existing files will be overwritten or deleted?
I intend to try that, but I haven't done so yet. My intention is to export the directory via nfs on one machine, and use it on another. Perhaps somebody has done it and documented the process? :-?
Well, it works. I have tried two methods, both work (in oS 11.2) The first point to notice is where are the packages stored; they are under a directory per repo, named as the "alias" name listed by "zypper lr" bellow /var/cache/zypp/packages/. Interestingly, if we change the "alias" name, the old directory is left alone, and a new one is created, the moment some package is downloaded. Ah, each repo we want to share has to be marked in zypper to "keep downloaded packages". Or change the default for all of them. Well, one procedure is keeping in sync the equivalent directory on both computers. I like "unison" for this. For example, I can run 'you' on the laptop, and after it finishes run 'unison' to sync /var/cache/zypp/packages/updates in the laptop to /var/cache/zypp/packages/repo-updates in the server, then run 'you' in the server (and 'unison' again). I can do the update in any machine first, and I don't need both machines running, not even interconnected. If needed, I could update the machines independently, and then sync them the day I'm back on the same network. It is more flexible. The disadvantage is that we waste storage, we keep two copies - or more if we have several computers. Another procedure is to export /var/cache/zypp/packages/ in the server (via nfs), and import it in the other machines, as /var/cache/zypp/packages_nfs/ (for example). As it is probable that you don't have the same names on both sides for all repos, that's why I import the server dir with a different name, then I symlink each repo, like: /var/cache/zypp/packages/updates --> /var/cache/zypp/packages_nfs/repo-updates This method saves storage space, doesn't need to run a unison process, but it requires the server to be running each time we run an update in any machine. And I think that we can not update two machines simultaneously, in case they try to download and write the same file to the server. And then, of course, there is the other method described in "http://www.3111skyline.com/linux/openSuSE-LocalUpdate.php", which is more general (and preferable for a group of computers). - -- Cheers / Saludos, Carlos E. R. (from 11.2 x86_64 "Emerald" GM (Elessar)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAkvjb3wACgkQU92UU+smfQW7ZwCghxQNqROCeWXJzPPmHwphL8rL EzcAn1oe95FjpK7nlWe+nBzpE/hYsPDp =lbyc -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 05/06/2010 06:40 PM, Carlos E. R. wrote:
On 2010-05-05 23:04, I wrote:
On 2010-05-05 20:24, j debert wrote:
...
Has anyone using 11.2 successfully tried to copy the zypper cache directory from one box to another? Does anyone know whether or not the existing files will be overwritten or deleted?
I intend to try that, but I haven't done so yet. My intention is to export the directory via nfs on one machine, and use it on another. Perhaps somebody has done it and documented the process? :-?
Well, it works.
I have tried two methods, both work (in oS 11.2)
That's good. I'm less neurotic about it now. ^_^ I'll be trying this soon, as well. Thanks. Ciao == jd "I dread success. To have succeeded is to have finished one's business on earth, like the male spider, who is killed by the female the moment he has succeeded in his courtship. I like a state of continual becoming, with a goal in front and not behind." -- George Bernard Shaw - -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFL5Bb0hpL3F+HeDrIRAiIPAJ0dDGI5HYNygfgZJOsmZEKkg+MY8wCdFxxz gIyzvIXP4LLw9wqIQIRhVgM= =JiSK -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (5)
-
Carlos E. R.
-
Carlos E. R.
-
j debert
-
Jon Clausen
-
Michael Schroeder