Questions tagged [xar]

Xar (short for eXtensible ARchive format) is an open source file archiver and the archiver’s file format.

Xar (short for eXtensible ARchive format) is an open source file archiver and the archiver’s file format. It was created within the OpenDarwin project and is used in Mac OS X 10.5 for software installation routines, as well as browser extensions in Safari 5.0. Xar replaced the use of gzipped pax files.

One development branch of RPM, RPM5, uses xar.

/etc/magic


The following code snippet shows the magic number, in the /etc/magic format of the Unix file program:

#-------------------------------------------------------------
# file(1) magic(5) data for xar archive file format
0     string    xar!    xar - eXtensible ARchiver archive
>6    beshort   x       - version %d

External links

11 questions
5
votes
5 answers

Cannot extract xcode 8 beta 3

I have downloaded it 3 times. Twice in safari and once in chrome. Every time I cannot unarchive it with the default tool, or with Unarchiver. Based on this apple developer thread I tried: $ xar -xf Xcode_8_beta_3\ \(1\).xip Error while extracting…
SimplGy
  • 20,079
  • 15
  • 107
  • 144
3
votes
0 answers

libarchive with Xar - can't read contents of 2nd item and above in archive

The following piece of code works fine for formats like TAR, but when i'm using it for XAR, it reads the 1st item successfully, but from the 2nd item and on, the file names and size are retrieved, yet archive_read_data fails (with error code 25 -…
IdoT
  • 2,831
  • 1
  • 24
  • 35
3
votes
0 answers

Python to modify a .pkg file

My python code need to unpack a .pkg file, modify some file there and pack it again. Any mature python module to suggest? I saw there's pyxar (xarfile), which requires install xar on the machine first. Any other options I could choose? Finally…
lucky_start_izumi
  • 2,511
  • 13
  • 41
  • 61
3
votes
0 answers

link to dylib in xcode 4

I'm trying to use libxar inside my xcode4 project and get the famous "undefined symbols for architecture" error, no matter what arch I choose for building, e.g.: Undefined symbols for architecture x86_64: "xar_open(char const*, int)", referenced…
hitme
  • 51
  • 2
1
vote
1 answer

Sign a XAR with productsign is corrupting the archive file

I am trying to use productsign to sign a XAR archive containing 2 pkg files created using productbuild . The xar tool is creating the file correctly, but I think the signing is corrupting the content, even though the file obtained is signed. Some…
MathPlayer
  • 194
  • 3
  • 20
1
vote
1 answer

Read Contents of file inside xar file using the command line

I am trying to read the contents of the file inside the xar file without extracting them using the command line. When I run the command, xar -tf filename.xar | grep -i 'info' it list all the file that I am after. But when I try to read the contents…
Ishan
  • 3,931
  • 11
  • 37
  • 59
0
votes
0 answers

How can I extract the contents of a Python xar file?

I have a .xar file. .xar is an exectuable archive file format developed by Meta/Facebook for creating self-contained Python binaries. I would like to extract its contents into a directory so I can look around and see what's inside the archive. How…
Kerrick Staley
  • 1,583
  • 2
  • 20
  • 28
0
votes
1 answer

How to get .EXE file from TwinCAT XAE project to run on TwinCAT XAR

I hope this message finds you well. I have worked on TwinCAT XAE for past couple of months. I have developed and tested my programs on my Development PC using TwinCAT XAE and Visual studio. Now I want to shift my programs from my development PC to…
Talha Bashir
  • 33
  • 1
  • 7
0
votes
1 answer

Unable to create XAP file in Visual studio professional 2017

I have installed Visual studio 2017 professional. Create new project in cordova app. I need windows app(.xap). But it run on local machine properly. Build folder i m getting CordovaApp.Windows10.build.appxrecipe file only. how will i get .xap…
0
votes
3 answers

Scriptable way to create flat .pkg files with custom resources and scripts

I have created a flat .pkg file with following options on 10.7 using PackageMaker 3.0.6: /Applications/PackageMaker.app/Contents/MacOS/Package --root ./myroot \ --id com.myroot.pkg --title "My Root" --scripts ./scripts --target 10.5 \ --verbose…
Heikki Toivonen
  • 30,964
  • 11
  • 42
  • 44
-1
votes
1 answer

How can i create a .pkg mac installer for my binary?

I have a binary file, foo. Built using vercel/pkg. I would like to bundle this in an installer for mac; A .pkg installer file. It should install the binary in /usr/local/bin/foo. Attempt: $ cd Desktop // <--- foo binary is here $ pkgbuild…
johann1301s
  • 343
  • 4
  • 19