xar是一种扩展的归档格式(eXtensible ARchive format),是一种开源的文件格式。xar文件在Mac OS X 10.5里是用于软件安装程序。git
----------------github
本文将在Kali Rolling安装xar,以便解压一些xar文件。工具
-------ui
一、安装xarspa
git clone https://github.com/mackyle/xar cd xar/xar ./autogen.sh --noconfigure ./configure make make install
这样就安装成功code
二、autogen.sh报错orm
./autogen.sh: 5: ./autogen.sh: autoconf: not found
这是由于没有安装automake工具。(使用autoconf和automake两个工具能够自动地生成符合自由软件惯例的Makefile,这样就能够像常见的GNU程序同样,只要使用”./configure”,”make”,”make instal”就能够把程序安装到Linux系统中去了。)xml
apt-get install autoconf automake libtool
三、configure报错blog
configure: error: Cannot configure without xml2-config
这里只须要:ssl
apt-get install libxml2-dev
若仍是报错:
configure: error: Cannot build without libcrypto (OpenSSL)
能够这样:
apt-get install libssl-dev
(若是下载不了,请先apt-get update)
四、xar使用方法
把p.txt压缩为pcat.xar:
xar -cf pcat.xar p.txt
解压pcat.xar:
xar -xf pcat.xar