From owner-freebsd-questions@FreeBSD.ORG Thu Dec 18 07:55:37 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A2C2916A4CE for ; Thu, 18 Dec 2003 07:55:37 -0800 (PST) Received: from be-well.no-ip.com (lowellg.ne.client2.attbi.com [66.30.200.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C08443D5D for ; Thu, 18 Dec 2003 07:55:31 -0800 (PST) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: by be-well.no-ip.com (Postfix, from userid 1147) id C7AE760; Thu, 18 Dec 2003 10:55:30 -0500 (EST) Sender: lowell@be-well.ilk.org To: freebsd-questions@freebsd.org References: From: Lowell Gilbert Date: 18 Dec 2003 10:55:30 -0500 In-Reply-To: Message-ID: <448yla15ot.fsf@be-well.ilk.org> Lines: 21 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: how do I change ftp site pkg_add -r uses X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Dec 2003 15:55:37 -0000 top-post. don't Please > There's an environment variable described in the manual page for > pkg_add which claims to do that. > Yes I read that, but it does not say how to display current setting > or how to change it. To see the current setting, you just use the program and it tells you where it's going. To change it, you set the variable to a different value in your environment. How you set an environment variable depends on what shell you use, but for sh-style shells, the example from the manual page would be # PACKAGEROOT='ftp://ftp3.FreeBSD.org' # export PACKAGEROOT Please read the Handbook section on "Shells". http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/shells.html