Questions tagged [bsdtar]

bsdtar is the FreeBSD implementation of the tar command (not to be confused with paxtar, which is the OpenBSD/MirBSD implementations of the tar, pax and cpio commands in one shared binary). bsdtar creates and manipulates streaming archive files. This implementation can extract from tar, pax, cpio, zip, jar, ar, and ISO 9660 cdrom images and can create tar, pax, cpio, ar, and shar archives.

11 questions
10
votes
4 answers

Vagrant, error when running vagrant up --provider=docker

I'm trying to test the new docker support in vagrant 1.6. I'm on windows and I've setup my vagrant file but when I run "vagrant up --provider=docker" I get the following: Bringing machine 'default' up with 'docker' provider... ==> default: Docker…
ciwolsey
  • 97
  • 1
  • 1
  • 13
5
votes
4 answers

Why does `vagrant box add` yield a `bsdtar` error importing a `.box` in Ubuntu?

I installed vagrant and virtual box in Ubuntu 12.04.2 LTS. (Vagrant version 1.2.1). I have the vagrant box downloaded and executed the vagrant box add command. I am getting the following error: *vagrant box add base64 package.box Downloading or…
user2846870
  • 571
  • 1
  • 8
  • 16
3
votes
3 answers

tar files using the -C option and wildcard

I'm passing a tar command to shell executor in an application. But it seems that my tar syntax is incorrect. (This is Windows (bsdtar command) but works the same as Linux as far as I know; I can also test on Linux if need be.) I'm trying to tar gz…
dlite922
  • 1,924
  • 3
  • 24
  • 60
2
votes
1 answer

How to escape chars in BSD tar path substitution option

This does not work: $ tar -cf /tmp/z.tar -C /space/myroot -s '/^\.svn\/patches/__patches' src .svn/patches tar: Invalid regular expression: trailing backslash (\) Also no good: $ tar -cf /tmp/z.tar -C /space/myroot -s…
user9645
  • 6,286
  • 6
  • 29
  • 43
2
votes
1 answer

Is it possible to add a file to a zip stream?

Let's suppose I download a zip archive, and I mean something like adding some file on the fly to the data stream, avoiding usage of a temp file: wget http://example.com/archive.zip -O - | zipadder -f myfile.txt | pv I read somewhere that bsdtar can…
Konstantin
  • 2,983
  • 3
  • 33
  • 55
1
vote
1 answer

bsdtar file deliminator byte?

I'm using bsdtar to pipe the contents of a .tar.gz file containing many (millions) xml files to stdout. Currently the command I'm using is: $ bsdtar -x -f -O | ... In the downstream program (the ellipsis in the above command) I…
James Schinner
  • 1,549
  • 18
  • 28
1
vote
0 answers

bsdtar fails to unpack firefox xpi

Extensions to Mozilla applications like Firefox or Thunderbird are distributed in XPI format, which is basically a ZIP archive. As such, the unzip utility can extract it. bsdtar is able to do so, as well. But if the archive contains a META-INF…
XZS
  • 2,374
  • 2
  • 19
  • 38
0
votes
0 answers

Why bsdtar translates some special characters?

I have a simple piece of code (part of a larger PowerShell script) that I use to pack files into .tar: tar -cf $Destination $Source It did the job well for what I needed, but recently I encountered some special characters that are not…
cerenicu
  • 3
  • 3
0
votes
1 answer

Is there an equivalent --mtime option for bsdtar?

I need to use bsdtar to create an archive and set the modification time the same way as I would do with tar (with --mtime=date option), but I cannot find any equivalent option for bsdtar. I need to use bsdtar because with tar I have issues with…
Harry
  • 188
  • 1
  • 12
0
votes
1 answer

Build bsdtar that uses custom liblzma.dylib library

Might be a very obvious thing to do, but I'm stuck on trying to build a bsdtar that uses a custom build version of liblzma.dylib, so I can share both the bsdtar binary and the liblzma.dylib library together. Thanks to Tsyvarev comment, I'm building…
aone
  • 57
  • 8
0
votes
1 answer

The -q option of bsdtar

I ran across the following code in a bash script. # See if bsdtar can recognize the file if bsdtar -tf "$file" -q '*' &>/dev/null; then cmd="bsdtar" else continue what did the '-q' option mean? I did not find any information in the help message…
yorua007
  • 803
  • 3
  • 9
  • 14