Xarchiver giving error messages

I have FreeBSD installed with Xarchiver and when extracting files through the file manager ("Extract here..." option) the following error pops up:

tar: unrecognized option `--overwrite'

Perhaps this is a known error and is there a way to solve it?

Looks like the PATH set for your application is picking up the operating system tar command rather than the GNU version of tar, the latter may have been installed with your application, perhaps?

That is quite possible, although I would not know how to check that or how to correct it. Please advise.

To start with try running in a terminal window as the account that runs xarchiver:

$ type tar

That will show us where the tar command is being found.

Then try running:

$ tar --version

This will display what version of tar is installed and will mention GNU somewhere if it is GNU tar.

Then run:

$ echo $PATH

To see what your path is set to.

Then try running:

$ updatedb
$ locate tar | grep bin

To locate all the tar commands installed on your system.

And just for good measure and completeness:

$ whereis tar

Which may find various copies of tar around.

Post the results to this thread and we can take it from there.

This what I found up to updatedb:

# type tar
type: Command not found.
# which tar
/usr/bin/tar
# tar --version
bsdtar 2.5.5 - libarchive 2.5.5
# echo $PATH
/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin
# updatedb
updatedb: Command not found.

With updatedb you probably mean the locate database?
Also

# locate tar | grep bin

gave a fairly lengthy output, you probably had something specific in mind?

Finally:

# whereis tar
tar: /usr/bin/tar /usr/share/man/man1/tar.1.gz /usr/src/usr.bin/tar

So it looks like by default you are using /usr/bin/tar and that is the tar command for BSD, the locate command should tell us where alternative tar commands are installed, whereis shows that no other tar commands are in the PATH.

$ locate tar | grep bin

Was an attempt to list only tar commands, not manpages, source code, etc.

$ locate tar | grep bin | grep "tar$"

Will hopefully produce a shorter list, it will exclude all the commands with "start" in them!

Thank you for your response. This is what was yielded:

# locate tar | grep bin > tar.txt
# grep tar$ tar.txt 
/usr/bin/bsdtar
/usr/bin/tar
/usr/src/usr.bin/tar

gtar is NOT a dependencies of xarchiver, so it is normal you can't find it installed.

Maybe you have any options in xarchiver to configure tar options ?

I recommend you contact the port manager of xarchiver, and tell him about the issue, he should be able to edit the port so that it uses the bsdtar with alternative switches, or use the gtar.

Ok, thanks for your responses. Have actioned your suggestions.

I imagine that bsdtar is a link to tar but just to prove it run:

$ /usr/bin/bsdtar --version

If the output does not mention GNU then you do not have gnu tar installed, so will need to install it from here:
Tar - GNU Project - Free Software Foundation (FSF) then try Xarchiver again...

# /usr/bin/bsdtar --version
bsdtar 2.5.5 - libarchive 2.5.5

I will look into your suggestion and get back with issues, if any.
EDIT: So you are suggesting that the following lines should be executed before the paragraph of code below is executed?

pkg_add -r gtar

You may want to know that the archive functionality is installed as follows:

# install thunar archive plugin
pkg_add -r thunar-archive-plugin
# install xarchiver
pkg_add -r xarchiver