[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Disappearing symlinks in RPM transaction
- From: Jos Vos <jos xos nl>
- To: RPM Package Manager <rpm-list redhat com>
- Subject: Re: Disappearing symlinks in RPM transaction
- Date: Fri, 8 Aug 2008 19:55:43 +0200
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 <jos xos nl>
-- X/OS Experts in Open Systems BV | Phone: +31 20 6938364
-- Amsterdam, The Netherlands | Fax: +31 20 6948204
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]