2

I am trying to create a xar archive using the tar utility in FreeBSD

tar -c -f test --format xar index.html

I get the following error

Can't use format xar: Xar not supported on this platform

How can I enable xar support for my FreeBSD machine?

3
  • Try using XAR (all caps) instead of xar (lower-case)? – nomadrc Aug 23 '15 at 4:52
  • @nomad.rc That doesn't work. I get the following error instead Can't use format XAR: No such format 'XAR' – SivaDotRender Aug 23 '15 at 4:56
  • The libarchive-formats(5) man page sections for the formats .cab, .xar, and .lha are blank entries, leading me to believe that they may not be supported by bsd tar. – nomadrc Aug 23 '15 at 5:20
2

FreeBSD's tar doesn't support the xar format, but once again ports to the rescue - archivers/xar seems to be what you want!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.