Last Updated on 2012年8月16日 by かんりにん
たまたまlinux環境で使用する必要が出たので、インストール。
- ダウンロードページ
http://timeoff.wsisiz.edu.pl/rpms.html
ビルド&コンパイル
CentOS5用のRPMは無いので、ソースRPMからパッケージをビルド。
# cd /usr/src/redhat/SRPMS # wget http://timeoff.wsisiz.edu.pl/zrzut/p7zip-4.44-1.src.rpm # rpm -Uvh p7zip-4.44-1.src.rpm # cd ../SPECS/ # rpmbuild -bb p7zip.spec
- コンパイルしたパッケージを確認
# cd ../RPMS/x86_64/ # ll total 1840 -rw-r--r-- 1 root root 686402 Feb 22 17:04 p7zip-4.44-1.x86_64.rpm -rw-r--r-- 1 root root 3850 Feb 22 17:04 p7zip-debuginfo-4.44-1.x86_64.rpm -rw-r--r-- 1 root root 1182602 Feb 22 17:04 p7zip-plugins-4.44-1.x86_64.rpm
インストール
# rpm -ivh --test p7zip-4.44-1.x86_64.rpm p7zip-plugins-4.44-1.x86_64.rpm # rpm -ivh p7zip-4.44-1.x86_64.rpm p7zip-plugins-4.44-1.x86_64.rpm Preparing... ########################################### [100%] 1:p7zip ########################################### [ 50%] 2:p7zip-plugins ########################################### [100%]
使い方:解凍
# 7z x <FILENAME>.7z