From owner-freebsd-questions@FreeBSD.ORG Fri Sep 23 12:11:58 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 053B2106566B for ; Fri, 23 Sep 2011 12:11:58 +0000 (UTC) (envelope-from ml@my.gd) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 972428FC17 for ; Fri, 23 Sep 2011 12:11:57 +0000 (UTC) Received: by wyj26 with SMTP id 26so1159485wyj.13 for ; Fri, 23 Sep 2011 05:11:56 -0700 (PDT) Received: by 10.227.208.137 with SMTP id gc9mr3543824wbb.91.1316779916275; Fri, 23 Sep 2011 05:11:56 -0700 (PDT) Received: from dfleuriot-at-hi-media.com ([83.167.62.196]) by mx.google.com with ESMTPS id gd6sm16178317wbb.1.2011.09.23.05.11.54 (version=SSLv3 cipher=OTHER); Fri, 23 Sep 2011 05:11:54 -0700 (PDT) Message-ID: <4E7C7789.3060504@my.gd> Date: Fri, 23 Sep 2011 14:11:53 +0200 From: Damien Fleuriot User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <1316777112.68517.YahooMailClassic@web111802.mail.gq1.yahoo.com> In-Reply-To: <1316777112.68517.YahooMailClassic@web111802.mail.gq1.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: Overwrite bsd tar X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Sep 2011 12:11:58 -0000 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@pcbsd-2112] ~> tar --version > bsdtar 2.7.0 - libarchive 2.7.0 > [prom@pcbsd-2112] ~> su > Password: > [prom@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