Re: yum erase and symlinks

James Antill <[email protected]> Tue, 29 Jan 2013 17:17:45 -0500
Newsgroups gmane.linux.rpm.yum
Message-ID <[email protected]>
Stephen Ellis <[email protected]> writes:

> Hi
>
> I have three packages that install various files inside the same directory structure like this:
>
> /foo
> /foo/release
> /foo/release/conf
> /foo/release/etc
> /foo/release/bin
>
> The target server however contains an existing symlink like this:
>
> /foo -> /pool/foo
>
> The installs all seem to work fine.  If I try and run a yum erase on a single package, the /foo symlink on the server is removed as part of the erase leaving the /pool/foo/* intact with the other package files (as expected).  How can I keep the symlink from being removed?

 Is there anything in the %preun/%postun ... what version of rpm?
 If there's not scriptlets it sounds like a weird bug in rpm, to
me. What version of rpm are you running?

 One likely workaround would be to do:

rm /foo
mkdir /foo
mount --bind /pool/foo /foo

-- 
James Antill -- [email protected]