unxz コマンドが見つからない。
debian でいつものように xz をunxz展開しようとしたら。コマンドが見つからない
unxz ubuntu-20.04.2-preinstalled-server-arm64+raspi.img.xz -bash: unxz: command not found
インストール
xzを使うパッケージは、xz-utilsになる。
次のコマンドがインストールされることがわかる。
sudo apt-file list xz-utils xz-utils: /usr/bin/lzmainfo xz-utils: /usr/bin/unxz xz-utils: /usr/bin/xz xz-utils: /usr/bin/xzcat xz-utils: /usr/bin/xzcmp xz-utils: /usr/bin/xzdiff xz-utils: /usr/bin/xzegrep xz-utils: /usr/bin/xzfgrep xz-utils: /usr/bin/xzgrep xz-utils: /usr/bin/xzless xz-utils: /usr/bin/xzmore
インストール結果
sudo apt install xz-utils Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: gyp libatomic1 libbrotli1 libjs-inherits libjs-is-typedarray libssl-dev libuv1-dev Use 'sudo apt autoremove' to remove them. The following NEW packages will be installed: xz-utils 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 183 kB of archives. After this operation, 453 kB of additional disk space will be used. Get:1 http://deb.debian.org/debian buster/main amd64 xz-utils amd64 5.2.4-1 [183 kB] Fetched 183 kB in 0s (2,361 kB/s) Selecting previously unselected package xz-utils. (Reading database ... 30068 files and directories currently installed.) Preparing to unpack .../xz-utils_5.2.4-1_amd64.deb ... Unpacking xz-utils (5.2.4-1) ... Setting up xz-utils (5.2.4-1) ... update-alternatives: using /usr/bin/xz to provide /usr/bin/lzma (lzma) in auto mode
なんか lzma も増えた