RPM and files installed

Matthias Clasen mclasen at redhat.com
Wed Jan 17 20:36:11 UTC 2007


On Wed, 2007-01-17 at 15:30 -0500, Jesse Keating wrote:
> On Wednesday 17 January 2007 15:26, Daniel Yek wrote:
> > How do I make sure that files created during rpm installation are being
> > recorded as belonging to the package? I'm not sure, but I think if rpm
> > %post install script created some symbolic links, they might not be
> > recorded as installed by the rpm package. (Or are they?)
> >
> > How RPM keeps track of files created by scripts? Does it trap system calls
> > to record all created files and symbolic links? If not, what one needs to
> > do to make sure that all files and symbolic links created are being
> > accounted for properly?
> 
> Simple.  Don't create files in %post.  They aren't tracked.  If you need a 
> symlink, do it in %install and then track the symlink in %files.

Or you can add %ghost entries, right ?






More information about the fedora-devel-list mailing list