Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to unzip files in a Heroku Buildpack

I'm writing a custom Heroku buildpack (heroku-buildpack-fantom) for Fantom, and as part of the compile script I've downloaded a .zip file (from a language vendor), but how do I unzip it?

unzip is not a recognised command.

gunzip exists but I can't use it to unzip .zip files.

What am I missing?

like image 543
Steve Eynon Avatar asked May 16 '13 23:05

Steve Eynon


People also ask

How do I unzip a file in TCL?

It is quite simple to prefix a zip file with a 'self-extractor' stub; we can use this to use zip files as Tcl modules. To turn a zip file into a self-extracting one, you must adjust the file offset stored at the tail of the zip file; this offset points to the first element in the zip file central directory.

How do I unzip a program in Linux?

To unzip files, open File Manager, as explained in the Zipping Files via GUI section. Right click the ZIP package you'd like to extract, and select Extract Here, as shown below. Once you click Extract Here, Linux will extract all files in the ZIP package in the working directory.


1 Answers

Even though (by default) Linux does not come pre-installed with unzip, the Heroku dyno does have a jar command. So the following works okay:

  > jar xf wotever.zip
like image 74
Steve Eynon Avatar answered Nov 01 '22 15:11

Steve Eynon