WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: unzip a tcz  (Read 5803 times)

Offline alanl

  • Newbie
  • *
  • Posts: 48
unzip a tcz
« on: June 09, 2010, 11:27:08 PM »
How do I unzip a tcz?

Offline maro

  • Hero Member
  • *****
  • Posts: 1228
Re: unzip a tcz
« Reply #1 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.

Offline alanl

  • Newbie
  • *
  • Posts: 48
Re: unzip a tcz
« Reply #2 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?

Offline jur

  • Hero Member
  • *****
  • Posts: 863
    • cycling photo essays
Re: unzip a tcz
« Reply #3 on: June 10, 2010, 12:32:02 AM »
Check the wiki for description on how to do extensions.

Offline maro

  • Hero Member
  • *****
  • Posts: 1228
Re: unzip a tcz
« Reply #4 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


Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: unzip a tcz
« Reply #5 on: June 10, 2010, 12:33:36 AM »
Did you try copying mc.ext to ~/.mc/bindings ?

Offline alanl

  • Newbie
  • *
  • Posts: 48
Re: unzip a tcz
« Reply #6 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.

Offline alanl

  • Newbie
  • *
  • Posts: 48
Re: unzip a tcz
« Reply #7 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?

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: unzip a tcz
« Reply #8 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.

Offline alanl

  • Newbie
  • *
  • Posts: 48
Re: unzip a tcz
« Reply #9 on: June 10, 2010, 01:05:17 AM »
Thanks gerald....works great!