Date: Thu, 18 Dec 2003 13:30:25 -0500 From: "fbsd_user" <fbsd_user@a1poweruser.com> To: <freebsd-questions@freebsd.org> Subject: RE: how do I change ftp site pkg_add -r uses Message-ID: <MIEPLLIBMLEEABPDBIEGIEBDFBAA.fbsd_user@a1poweruser.com> In-Reply-To: <448yla15ot.fsf@be-well.ilk.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <http://www.faqs.org/docs/jargon/T/top-post.html> > 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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?MIEPLLIBMLEEABPDBIEGIEBDFBAA.fbsd_user>