Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use Linux, and I want unpack a file that is daily released by an external entity in an self-extractable zip format for windows. If I would do this only once, that would be ok for me to find a Windows machine and run it there. However, this file is released daily, and I am in the process of automating the download.

Is there a way to unpack this file on linux?

If of any help, this is the header of the EXE file when run:

PKSFX(R)  Version 2.50  FAST!  Self Extract Utility for Windows 95/NT 4-15-1998
Copyright 1989-1998 PKWARE Inc.  All Rights Reserved. Shareware Version
PKZIP Reg. U.S. Pat. and Tm. Off.
share|improve this question
up vote 0 down vote accepted

Just found a way while tinkering with Linux Zip.

Give the self extractable file is a.exe:

  1. run zip -J a.exe to discard the preambles(stuff related to the executable itself, not the data).
  2. unzip normaly to a new file, with gunzip -d <a.exe >unpackedFile
share|improve this answer
I think it should be possible to do it in one go with "unzip". – pjc50 Nov 7 '12 at 14:16
Aye. Under windows you just rename the executable to .zip and use winrar/winzip/$whatever_prog to extract it. Assuming your unzip binary is compatible you could just 'unzip' the file under Linux and ignore the extenstion. – Hennes Nov 7 '12 at 17:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.