Overwrite bsd tar
Damien Fleuriot
ml at my.gd
Fri Sep 23 12:11:58 UTC 2011
On 9/23/11 1:25 PM, Esimorp E wrote:
> Dear all,
>
> I tried installing GridFTP on Freebsd, had errors which a user group said is due to bsd tar and I downloaded and installed Gnu tar which is required but the command 'tar --version' still show bsd tar as the default. Tried using package and encountered error as shown below.
>
> [prom at pcbsd-2112] ~> tar --version
> bsdtar 2.7.0 - libarchive 2.7.0
> [prom at pcbsd-2112] ~> su
> Password:
> [prom at pcbsd-2112] /home/prom# pkg_add -r tar
> Error: Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8.1-release/Latest/tar.tbz: File unavailable (e.g., file not found, no access)
> pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8.1-release/Latest/tar.tbz' by URL
>
> I would be grateful if anyone could help me out on how to overwrite bsd tar with Gnu tar.
>
Keep in mind that when you install a package or port, it installs to
/usr/local/bin or /usr/local/sbin , not /usr/bin or /bin
# ls -la /usr/bin/tar
lrwxr-xr-x 1 root wheel 6 Feb 21 2011 /usr/bin/tar -> bsdtar
-r-xr-xr-x 1 root wheel 62848 Feb 21 2011 /usr/bin/bsdtar
# ls -la /usr/local/bin/gtar
-r-xr-xr-x 1 root wheel 373664 Sep 23 14:10 /usr/local/bin/gtar
More information about the freebsd-questions
mailing list