How to extract multi-part zip files in Linux

hendra-k@server $ cat zipfiles.* > zipfiles-full.zip
hendra-k@server $ zip -F zipfiles-full.zip
hendra-k@server $ unzip zipfiles-full.zip

How to extract multi-part zip files | Hendra-k.net

Author: WladyX on 17 July, 2008
Category: General
7 responses to “How to extract multi-part zip files in Linux”
  1. jACKI says:

    Oh Its very helpfull ! thanks a core

  2. MarkG says:

    I’ve a problem with the second step.
    When I execute $zip -F myzipfiles-full.zip it returns me this: cannot find or open myzipfiles-full.zip, myzipfiles-full.zip.zip or myzipfiles-full.zip.ZIP

    Any idea??

    Thanks in advance.

  3. WladyX says:

    What does ls -al say?

  4. aasdfasdfg says:

    This functionality is automatically done in file-roller, the default archiving utility in ubuntu. Simply select the first file in the list of parts and it will detect the rest by filename (i.e., if you select file01.zip it will pick up filexx.zip where xx is a number)

  5. badong says:

    $ zip -F lastfile.zip –out full.zip
    $ unzip full.zip

    or this:

    $ zip -FF lastfile.zip –out full.zip
    $ unzip full.zip

    “lastfile.zip” refers to the last file in the series, the only file not ending with an integer;
    no need for the cat command

  6. Basil Crow says:

    I tried what badong suggested, but I received the following error: “reading archive fseek: Invalid argument.” The original procedure worked flawlessly, however.

  7. Bok says:

    I’m guessing it depends on how the files were split in the first place.
    badong’s suggestion worked fine for me, while repairing a cat’d file (with -F or even -FF) failed, regardless of the order in which I fed it the files.
    Also, the default archive viewer in Ubuntu Natty Narwhal could not open the split archive here; I had to use “zip -F”.

Leave a Reply

Last articles