replacing folders with symlinks leads to rpm cpio rename errors

Fernando Nasser fnasser at
Mon Sep 24 14:09:42 UTC 2012

triggers could be used too  (to rm -fr the directory installed by old versions of the package)

Another *be careful* warning for this one too.

----- Original Message -----
From: "Panu Matilainen" <pmatilai at>
To: devel at
Sent: Friday, September 21, 2012 4:17:27 AM
Subject: Re: replacing folders with symlinks leads to rpm cpio rename errors

On 09/21/2012 10:27 AM, Ralf Corsepius wrote:
> On 09/21/2012 09:22 AM, Julian Sikorski wrote:
>> W dniu 21.09.2012 08:53, Julian Sikorski pisze:
>>> Hi list,
>>> one of the updates I am preparing is supposed to replace some of the
>>> folders with symlinks. Unfortunately, this leads to rpm cpio: rename
>>> errors upon an update attempt. Is there a standard way of dealing
>>> with this?
>>> Regards,
>>> Julian
>> It seems to have gone through upon the second attempt. Odd.
> Was the directory empty before installing the rpm replacing the
> directory with a symlink?
> I could be wrong, but IIRC, current rpm is only able to handle
> dir->symlink replacers when "dir"s are empty.

A directory (empty or not) can't be automatically replaced by anything 
else (symlink or otherwise) in the existing rpm versions. If absolutely 
necessary, it can be accomplished by doing the necessary renames and 
symlinks in "%pretrans -p <lua>" scriptlet, but that should be only seen 
as the last resort as its not exactly a safe operation.

	- Panu -

devel mailing list
devel at

More information about the devel mailing list