0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

wgetしたzipファイルを保存せずにjarコマンドで直接解凍する

Last updated at Posted at 2020-10-22

使い所

  • jarコマンドが使えるならば・・・の話のため、使い所は少ない
  • githubとかからzipファイルをwgetやcURLで取得し、標準出力へリダイレクトさせ、jarファイルで解凍、とやれる
  • zipファイルを保存、解凍、削除という手間が減る

# watchmanのビルド済みバイナリをgithubから落としてきて、使えるようにする
wget -qO- https://github.com/facebook/watchman/releases/download/v2020.09.21.00/watchman-v2020.09.21.00-macos.zip | jar xvf /dev/stdin
# 確認
cd ./watchman-v2020.09.21.00-macos
# 移動
tree ./
sudo mv ./lib/*.dylib /usr/local/lib
sudo mv ./bin/watchman /usr/local

c.f. homebrew経由のwatchmanインストールは都度./configure, make, make install が必要

unzipではダメだった

最新版 v6.1 ではサポート外

MANページに、unzipは標準入力からの読み込みに非対応、と記載

Archives read from standard input are not yet supported,
except with funzip (and then only the first member of the
archive can be extracted).

v8.0 でサポートされる(時期未定)

Future Plans

と題して、zipfile from standard input の解凍のサポートが謳われている

And then perhaps version 8.0 will be released, with full filter support (that is, able to read and extract a zipfile from standard input like fUnZip does now), but now we're really dreaming.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?