Yum Package Remove Order
Stanislav Ochotnicky
sochotnicky at redhat.com
Fri Nov 30 15:37:47 UTC 2012
Quoting Mark Bidewell (2012-11-30 16:21:20)
> On Fri, Nov 30, 2012 at 9:47 AM, Fernando Nasser <fnasser at redhat.com> wrote:
> > Hi,
> >
> > Why are you creating these directories in %post in the firs place?
> >
> > If you create them in %install (empty) and own them regularly in %file and
> > do the same on
> > the other packages that install thins on it, they will be properly removed
> > when the last
> > RPM that owns them go away.
> >
> > Regards,
> > Fernando
>
> I was not aware of %install(empty) where can I find some documentation?
rant: ugh, mixing top/bottom posting....
Anyway, what Fernando meant probably:
---------
%install
....
mkdir %{buildroot}/opt/companydirs
...
%file
...
%dif /opt/companydirs
--------
Done...
--
Stanislav Ochotnicky <sochotnicky at redhat.com>
Software Engineer - Base Operating Systems Brno
PGP: 7B087241
Red Hat Inc. http://cz.redhat.com
More information about the devel
mailing list