Help us understand the problem. What is going on with this article?

linux で 4GB 以上の zipファイルを解凍する方法

追記

jar xvf hogehoge.zip

安心感を得るために v を付けて解凍の進捗を可視化してますけど, 邪魔なら V を消してjar xf hoge.zipにすればいいです.

の方を使うと7zで偶に遭遇するエラーも回避できそうです. 知らんけど

How to unzip files bigger than 4GB?


unzip コマンドは簡単で楽ちんですが, 4GBを超えると

rchive:  hogehoge.zip
warning [hogehoge.zip]:  5987253855 extra bytes at beginning or within zipfile
  (attempting to process anyway)
error [hogehoge.zip]:  start of central directory not found;
  zipfile corrupt.
  (please check that you have transferred or created the zipfile in the
  appropriate BINARY mode and that you have compiled UnZip properly)

と言われます.

なので別の方法で解凍しなきゃいけないわけですが, 調べると tar コマンドを使えだの jar でjavaでなんか解凍しろだの言っててよくわからん.

で, 一番簡単な方法を見つけたのでそれを紹介します.

一言で言うと 7z を使え です.

インストール

$ sudo apt update
$ sudo apt-get install p7zip-full p7zip-rar

解凍

$ 7z x hogehoge.zip

この方法なら大きいzipファイルも解凍出来ます.

他にもいろいろオプションで指定出来るっぽいので気になる人は各自で調べてみてください.

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away