Re: Uncompress tar.gz



On 18 oct, 19:13, Adam Penny <adam_pe...@xxxxxxxxxxx> wrote:
Kless wrote:
Which is the best way to uncompress a 'tar.gz' file since Ruby?

I'm not sure if I'm misunderstanding you, but wouldn't that be

tar xvzf [filename]?

Better using Ruby:
----------------
tgz_file = Zlib::GzipReader.new( File.open(file, 'rb') )
Minitar.unpack(tgz_file, 'tgz_file')
----------------
.