RPM and files installed

Jesse Keating jkeating at redhat.com
Wed Jan 17 20:30:17 UTC 2007


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.

-- 
Jesse Keating
Release Engineer: Fedora
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20070117/4ac0f1a2/attachment.sig>


More information about the fedora-devel-list mailing list