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?
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With