Tiny Core Linux
Tiny Core Base => TCB Talk => Topic started by: deniska on January 04, 2010, 09:02:18 AM
-
Is there tool that scans fs before and after installing something and saves changes in tcz? It could be useful.
-
If you scan the entire file system you would get a lot of additional unwanted stuff in the tcz.
You would need to install to a particular directory, and make the contents of that directory into a tcz.
-
> If you scan the entire file system you would get a lot of additional unwanted stuff in the tcz.
Not entire. May be just /usr. The tool should provide file list editing if necessary.
> You would need to install to a particular directory, and make the contents of that directory into a tcz.
It isn't possible for some hardware drivers.
Anyway, is there ready to use tool or I have to write my own scripts?
-
No, there is no tool in the base for this, however there is a simple solution included in the Creating Extensions Wiki (http://wiki.tinycorelinux.com/tiki-index.php?page=Creating+Extensions) that uses touch and find.
-
I use scripts based on the template:
touch /tmp/TIMESTAMP
[[[ install your software ]]]
rm -fR /tmp/pkg
( cd / ; find usr/local -newer /tmp/TIMESTAMP -not -type d -depth | cpio -pd /tmp/pkg )
( cd /tmp ; mksquashfs pkg myapp.tcz )