yum erase and symlinks

Stephen Ellis <[email protected]> Tue, 29 Jan 2013 13:08:59 -0500
Newsgroups gmane.linux.rpm.yum
Message-ID <[email protected]>
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?