From owner-freebsd-questions Fri Feb 1 13:57: 4 2002 Delivered-To: freebsd-questions@freebsd.org Received: from harrier.prod.itd.earthlink.net (harrier.mail.pas.earthlink.net [207.217.120.12]) by hub.freebsd.org (Postfix) with ESMTP id 79ACC37B400 for ; Fri, 1 Feb 2002 13:56:58 -0800 (PST) Received: from dialup-63.208.70.50.dial1.chicago1.level3.net ([63.208.70.50] helo=earthlink.net) by harrier.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16Wlfw-0003KC-00; Fri, 01 Feb 2002 13:56:53 -0800 Message-ID: <3C5B0F21.2C2AE5C6@earthlink.net> Date: Fri, 01 Feb 2002 15:56:49 -0600 From: Bob X-Mailer: Mozilla 4.51 [en] (X11; I; FreeBSD 4.4-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: Joe & Fhe Barbish Cc: Dan Nelson , FBSD Subject: Re: Change default ftp site for pkg_add References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Joe & Fhe Barbish wrote: > > I see the man page on my pc is really different than > what is on the FBSD.org web site. So the web site man > page talks about the environment variable PACKAGEROOT > but as usual it does not say anything about where or > how to set this environment variable. > > How do I set this environment variable? This is just a general note FYI; I'm not familiar with the workings of pkg_add, whatsoever. Strictly speaking, an "environment" variable is one that exists in the evironment in which the program is run -- that is, the shell from which you run it. So, you could set an environment variable any way you like, so long as it is in effect when you run the program. So, you could set it i your .profile (or .login ...), .shrc (...) or any other script that gets read into ytour shell (via the dot (".") operator) -- or you could simply set the variable -- and export it -- from the command line before running the program. In ksh, e.g.: PACKAGEROOT="ftp://ftp3.FreeBSD.org"; export PACKAGEROOT If you have a fave site, you might want to put it in your profile. Otherwise, you can just do it at a commandline -- or even create a script with a few options. (But you have to "dot" the script into your environment if you set the variable(s) via script.) HTH -Bob To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message