[Yum] yum erase and symlinks
James Antill
james-yum at and.org
Tue Jan 29 22:17:45 UTC 2013
Stephen Ellis <sellis at acquiremedia.com> 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 -- james at and.org
More information about the Yum
mailing list