[opensuse] Changing zypper command
I've been in the habit of running "zypper dup" because I started it when I upgraded to kde4.3. I had the idea (mistaken?) that zypper dup was somehow more thorough than zypper up, but list comments seem to indicate that it's somewhat unsafe for less deeply knowledgable people like me. I just decided to try a "zypper up", and it's happily updating some of my software, but I'm wondering if it's altogether a good idea to start using "up" after several months of using "dup". The only thing I'm fairly sure of is that "up" won't change vendors, while "dup" will. Is it indeed safe to leave the present set of vendorsalone and just use "up" from now on? I haven't had any serious problem using "dup", but it frequently complains that it can't find a source for some library or other, and I have to blindly tell it to downgrade without knowing for sure what the effects will be. Will "zypper up" eliminate or reduce these complaints? am I likely to run into trouble changing to "zypper up"? --oops! Just hit a problem I don't remember having seen before: -------------------------------------------------------------- Installing: java-1_6_0-openjdk-1.6.0.0_b17-2.1.1 [error] Installation of java-1_6_0-openjdk-1.6.0.0_b17-2.1.1 failed: (with --nodeps --force) Error: Subprocess failed. Error: RPM failed: error: unpacking of archive failed on file /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/demo/applets: cpio: rename failed - Is a directory Abort, retry, ignore? [a/r/i] (a): ---------------------------------------------------------------- Since I have to leave for work now, I'll simply abort. Hope someone gives me some guidance for how to proceed from here when I get back tonight. John Perry -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thu, May 06, 2010 at 01:02:54PM -0400, John E. Perry wrote:
I've been in the habit of running "zypper dup" because I started it when I upgraded to kde4.3. I had the idea (mistaken?) that zypper dup was somehow more thorough than zypper up, but list comments seem to indicate that it's somewhat unsafe for less deeply knowledgable people like me.
Zypper dup is like zypper up except for two differences - it makes sure that all packages come from the repositories - it ignores vendor/arch/version constrains It basically is like writing down a list of all installed packages and then doing a fresh install with package names.
I just decided to try a "zypper up", and it's happily updating some of my software, but I'm wondering if it's altogether a good idea to start using "up" after several months of using "dup".
As 'zypper up' has more constrained that zypper dup you can't do something wrong. It's designed to do only "safe" things.
The only thing I'm fairly sure of is that "up" won't change vendors, while "dup" will. Is it indeed safe to leave the present set of vendorsalone and just use "up" from now on?
It shouldn't do any harm. It just won't do anything if it runs into problems.
I haven't had any serious problem using "dup", but it frequently complains that it can't find a source for some library or other, and I have to blindly tell it to downgrade without knowing for sure what the effects will be.
Will "zypper up" eliminate or reduce these complaints?
"zypper up" never complains. It just doesn't do anything ;-)
am I likely to run into trouble changing to "zypper up"?
--oops! Just hit a problem I don't remember having seen before:
--------------------------------------------------------------
Installing: java-1_6_0-openjdk-1.6.0.0_b17-2.1.1 [error] Installation of java-1_6_0-openjdk-1.6.0.0_b17-2.1.1 failed: (with --nodeps --force) Error: Subprocess failed. Error: RPM failed: error: unpacking of archive failed on file /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/demo/applets: cpio: rename failed - Is a directory
Abort, retry, ignore? [a/r/i] (a):
Ooooh, that's bad. Somebody replaced a directory with a file or symlink. Rpm can't handle that case, thus it's a packaging bug. I would simply do a 'rm -rf /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/demo/applets' if it doesn't contain anything you need. 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 2010-05-06 19:25, Michael Schroeder wrote:
Zypper dup is like zypper up except for two differences - it makes sure that all packages come from the repositories - it ignores vendor/arch/version constrains
It will also downgrade packages. - -- 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/ iEYEARECAAYFAkvjcRAACgkQU92UU+smfQVZNgCgiXZw5N1J/cUmoPHQWPB8Cc17 pa0An3BdrK1HEx/+cjihV9Xe3pLlH++V =s6Sj -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 05/06/2010 01:25 PM, Michael Schroeder wrote:
On Thu, May 06, 2010 at 01:02:54PM -0400, John E. Perry wrote:
I've been in the habit of running "zypper dup" because I started it when I upgraded to kde4.3. I had the idea (mistaken?) that zypper dup was somehow more thorough than zypper up, but list comments seem to indicate that it's somewhat unsafe for less deeply knowledgable people like me.
Zypper dup is like zypper up except for two differences - it makes sure that all packages come from the repositories - it ignores vendor/arch/version constrains ... As 'zypper up' has more constrained that zypper dup you can't do something wrong. It's designed to do only "safe" things. ... It shouldn't do any harm. It just won't do anything if it runs into problems. ... "zypper up" never complains. It just doesn't do anything ;-)
Thanks, Michael and all, I think it's time for me to go back to "zypper up", then. And in the future, to reserve "dup" for actual distribution upgrades.
--oops! Just hit a problem I don't remember having seen before:
--------------------------------------------------------------
Installing: java-1_6_0-openjdk-1.6.0.0_b17-2.1.1 [error] Installation of java-1_6_0-openjdk-1.6.0.0_b17-2.1.1 failed: (with --nodeps --force) Error: Subprocess failed. Error: RPM failed: error: unpacking of archive failed on file /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/demo/applets: cpio: rename failed - Is a directory
Abort, retry, ignore? [a/r/i] (a):
Ooooh, that's bad. Somebody replaced a directory with a file or symlink. Rpm can't handle that case, thus it's a packaging bug.
I would simply do a 'rm -rf /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/demo/applets' if it doesn't contain anything you need.
Well, I keep thinking about trying yet again to learn java, which is why I download the jdk. Since I'm between tries, I'll just let things lie for the moment, and maybe try downloading it again later -- or maybe when I go to 11.3. jp -- 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 19:02, John E. Perry wrote:
I've been in the habit of running "zypper dup" because I started it when I upgraded to kde4.3. I had the idea (mistaken?) that zypper dup was somehow more thorough than zypper up, but list comments seem to indicate that it's somewhat unsafe for less deeply knowledgable people like me.
I never run "dup" on any system, except factory. Or when going from, say, 11.1 to 11.2. It is designed for that situation.
Will "zypper up" eliminate or reduce these complaints? am I likely to run into trouble changing to "zypper up"?
"up" is safe, normally. An alternative is "zypper patch", which is similar to what "you" does: patch [options] Install all available needed patches. If there are patches that affect the package management itself, those will be installed first and you will be asked to run the patch command again. This command is similar to 'zypper update -t patch'. It is even safer. - -- 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/ iEYEARECAAYFAkvjcwsACgkQU92UU+smfQUeAACggjF4HFoXHh8rp9a4qgcyJ0vL lOkAn0djZQmIqUaLwC6bjQV45EqNVS0i =0ghU -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
Carlos E. R.
-
John E. Perry
-
Michael Schroeder