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:23:43 +0200
  • Message-id: <20080808122343.GA13791@xxxxxxx>
On Fri, Aug 08, Lorenzo Villani wrote:

On Fri, Aug 8, 2008 at 2:02 PM, Michael Andres <ma@xxxxxxx> wrote:

void RpmDb::removePackage( Package::constPtr package, unsigned flags )
return removePackage( package->name()
+ "-" + package->edition().asString()
+ "." + package->arch().asString(), flags );
Yes, I cam to the same function after digging for 1/2 Hour in both
zypper and libzypp source code (heh, I have no experience with their

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

Right, I'm making a patch for fedora which removes the epoch part.

BTW: In case 2 versions


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

AFAIK, the purpose of the Epoch number is to allow solvers to
determine the latest version of a package in such cases, example:
The solution in this case is to add an Epoch: 1 to the SPEC file. Of
course a better solution is to add an Obsoletes tag but many, many
packages in Fedora use Epoch for "historical" reasons.

I see.
The bug is fixed in SVN for 11.0 and TRUNK.


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