Mailinglist Archive: zypp-devel (84 mails)

< Previous Next >
Re: [zypp-devel] zypper can't remove NEVR packages
  • From: Michael Andres <ma@xxxxxxx>
  • Date: Fri, 8 Aug 2008 14:02:47 +0200
  • Message-id: <20080808120245.GA10573@xxxxxxx>
On Fri, Aug 08, Lorenzo Villani wrote:

Abort, retry, ignore? [A/r/i]: i
[...]
Removal of (16168)guile-5:1.8.5-1.fc9.i386(@System) failed:
Error: Subprocess failed. Error: RPM failed: error: package
guile-5:1.8.5-1.fc9.i386 is not installed
[...]

Packages with Epoch set are so common in Fedora that it is almost
impossible to use zypper to remove such packages. I guess that zypper
does not strip the '<Epoch number>:' part prior calling 'rpm -e' (or
whatever it calls). I don't know if SuSE has a patched version of rpm
or packages are not Epoch-versioned at all.
My zypper version is 0.11.10 retrieved from openSuSE 11 branch.
I'll see if I can make a patch to fix this.

Got it. This is to be fixed in libzypp.

target/rpm/RpmDb.cc

void RpmDb::removePackage( Package::constPtr package, unsigned flags )
{
return removePackage( package->name()
+ "-" + package->edition().asString()
+ "." + package->arch().asString(), flags );
}


I suppose rpm dislikes the epoch in edition().asString(): '5:1.8.5-1'

BTW: In case 2 versions

4:1.8.5-1
5:1.8.5-1

were installed at the same time, would it be possible ot remove just one
of them with rpm?

--

cu,
Michael Andres

+------------------------------------------------------------------+
Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4
+------------------------------------------------------------------+
Michael Andres YaST Development ma@xxxxxxxxxx
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg)
Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0
+------------------------------------------------------------------+

--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References