Re: Disappearing symlinks in RPM transaction
Jos Vos <[email protected]> Fri, 8 Aug 2008 19:55:43 +0200
| Newsgroups | gmane.linux.redhat.rpm.general |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Aug 08, 2008 at 07:12:05PM +0200, Jos Vos wrote:
> Can someone shed a light on this? I'm afraid the actual remove
> actions for foo-1-1 remove my symlink. The only thing I want to
> do is replacing a directory with a symlink in an update of the
> package. How should I do this?
To answer my own question, at least this seems to work:
%triggerpostun -- %{name} < %{version}-%{release}
ln -snf bar /opt/foo
Note that just "%triggerun" does not work, as this is run *before*
the actual files of the old version are removed.
Is this indeed the "recommended way"?
--
-- Jos Vos <[email protected]>
-- X/OS Experts in Open Systems BV | Phone: +31 20 6938364
-- Amsterdam, The Netherlands | Fax: +31 20 6948204