Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: deniska on January 04, 2010, 09:02:18 AM

Title: Tool for tcz creation.
Post 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.
Title: Re: Tool for tcz creation.
Post by: Guy on January 04, 2010, 09:07:41 AM
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.
Title: Re: Tool for tcz creation.
Post by: deniska on January 04, 2010, 09:35:31 AM
> 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?
Title: Re: Tool for tcz creation.
Post by: Kingdomcome on January 04, 2010, 09:39:30 AM
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.
Title: Re: Tool for tcz creation.
Post by: vitex on January 04, 2010, 09:40:14 AM
I use scripts based on the template:
Code: [Select]
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 )