Solaris/FreeBSD tar file incompatibility?

Dominic Mitchell dom at
Thu Oct 31 08:27:11 GMT 2002

On Tue, Oct 29, 2002 at 06:02:01PM +0000, Matthew Seaman wrote:
> tar(1) has a limit of 100 characters for the full length of any paths
> recorded in it.  Gnu tar (which is what FreeBSD is using at the
> moment) contains a hack to get around the problem, so you can use it
> safely with any path length.  Solaris tar, as far as I know, doesn't
> contain the fix.  So, yes, the tar formats are incompatible, but only
> when you're tarring up a reasonably deep tree.
> Either install Gnu tar on the Solaris box, or use find(1) + cpio(1) to
> create the archive file and cpio(1) to extract on FreeBSD.  Note:
> Solaris find(1) and cpio(1) don't have the options to work with null
> separated lists of file names, so if your directory tree contains
> filenames with spaces or other difficult characters you may not get
> precisely the effect you desire.

You may be better off installing star, from Jörg Schilling.

It claims to be much faster, do more stuff, etc.


More information about the Ukfreebsd mailing list