From owner-freebsd-questions@FreeBSD.ORG Thu Dec 18 10:30:28 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 6188816A4CE for ; Thu, 18 Dec 2003 10:30:28 -0800 (PST) Received: from mta9.adelphia.net (mta9.adelphia.net [68.168.78.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id CCFCE43D31 for ; Thu, 18 Dec 2003 10:30:26 -0800 (PST) (envelope-from fbsd_user@a1poweruser.com) Received: from barbish ([67.20.101.103]) by mta9.adelphia.net (InterMail vM.5.01.06.05 201-253-122-130-105-20030824) with SMTP id <20031218183026.NWVM23237.mta9.adelphia.net@barbish> for ; Thu, 18 Dec 2003 13:30:26 -0500 From: "fbsd_user" To: Date: Thu, 18 Dec 2003 13:30:25 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-reply-to: <448yla15ot.fsf@be-well.ilk.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal 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 Reply-To: fbsd_user@a1poweruser.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Dec 2003 18:30:28 -0000 I use whatever shell is the default for new installs. I have done nothing to change the default shell for the root account. Echo $PACKAGEROOT returns nothing setenv PACKAGEROOT 'ftp://ftp3.FreeBSD.org' worked for me then Echo $PACKAGEROOT returns what the setenv just did This only stays enabled for the duration of your login session. Edit /root/.cshrc and add the above setenv statement to make this permanent Pkg_add -r defaults to using this site 'ftp://ftp.FreeBSD.org' It happens to be the master ftp site from which all the other mirror sites download from. This site is frozen when the ports collection is being update in preparation for the next stable production release. right now 5.2 is being prepared. When ever pkg_add -r tells you file not found, it's time to setenv like above and try different ftp servers just by changing the ftpx number from 1 to 13 until you find one working. -----Original Message----- From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Lowell Gilbert Sent: Thursday, December 18, 2003 10:56 AM To: freebsd-questions@freebsd.org Subject: Re: how do I change ftp site pkg_add -r uses 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.htm l _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"