Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: alanl on June 09, 2010, 11:27:08 PM

Title: unzip a tcz
Post by: alanl on June 09, 2010, 11:27:08 PM
How do I unzip a tcz?
Title: Re: unzip a tcz
Post by: maro on June 09, 2010, 11:59:31 PM
If I just want to be able have a quick read-only look into a tcz archive I simply loop mount it.

For this I create a temporary directory with mkdir tcz-extr ; sudo mount EXT.tcz tcz-extr. The files of the archive are all available via the 'tcz-extr' directory. After use I simply un-mount and remove the directory with umount -d tcz-extr ; rm -rf tcz-extr. All this works with the TC / MC base, i.e. without any further extension.

If you want to really extract all the files you'll need the squashfs-tools-4.0.tcz extension and use the 'unsquashfs' command.
Title: Re: unzip a tcz
Post by: alanl on June 10, 2010, 12:23:05 AM
I`m trying to edit mc.ext but it cant be saved.  So I`m trying to
place my edited file in mc.tcz.  I`ve unsquashed it and made
the exchange.  Now how do I re-squash it?
Title: Re: unzip a tcz
Post by: jur on June 10, 2010, 12:32:02 AM
Check the wiki for description on how to do extensions.
Title: Re: unzip a tcz
Post by: maro on June 10, 2010, 12:32:24 AM
A bit lazy to read the Wiki or search the forum, eh?

Because that command is "all over the show": mksquashfs PKG_DIR PKG.tcz

Title: Re: unzip a tcz
Post by: gerald_clark on June 10, 2010, 12:33:36 AM
Did you try copying mc.ext to ~/.mc/bindings ?
Title: Re: unzip a tcz
Post by: alanl on June 10, 2010, 12:42:26 AM
Thank you very much Maro.
Well, when you get into your 60`s the old brain slows down!
Actually I did search extensions and tcz`s and I was reading
the wiki on howto unzip tinycore.gz.  I guess I didnt read
far enough.
Title: Re: unzip a tcz
Post by: alanl on June 10, 2010, 12:53:31 AM
~/.mc/bindings ??  I dont know anything about this.
Is it a way to make edited files permanent?
Title: Re: unzip a tcz
Post by: gerald_clark on June 10, 2010, 12:57:11 AM
~ is your home directory.
copy the file to /home/tc/.mc/bindings.
This file should be used instead of mc.ext if it exists.
This works on my CentOS machine, but I have not tried it on TC.
Title: Re: unzip a tcz
Post by: alanl on June 10, 2010, 01:05:17 AM
Thanks gerald....works great!