how do I change ftp site pkg_add -r uses
fbsd_user
fbsd_user at a1poweruser.com
Thu Dec 18 10:30:28 PST 2003
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 at freebsd.org
[mailto:owner-freebsd-questions at freebsd.org]On Behalf Of Lowell
Gilbert
Sent: Thursday, December 18, 2003 10:56 AM
To: freebsd-questions at 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 at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribe at freebsd.org"
More information about the freebsd-questions
mailing list