The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > BSD
.
google unix.com



BSD BSD, sometimes called Berkeley Unix, is a Unix operating system developed by the Computer Systems Research Group of the UC Berkeley.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
PING - Unknown host 127.0.0.1, Unknown host localhost - Solaris 10 Przemek SUN Solaris 4 05-26-2008 12:11 AM
pkg_add fails HIMANI UNIX for Dummies Questions & Answers 0 09-04-2007 05:33 AM
How to delete the files from local host to remote host krishna176 SUN Solaris 3 03-24-2007 04:48 PM
host alias not working: host not found FunnyCats UNIX for Advanced & Expert Users 4 05-13-2005 04:36 PM
QNX host cannot ping SCO host, vice versa gavon IP Networking 2 08-20-2001 08:57 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-03-2009
figaro figaro is offline
Registered User
  
 

Join Date: Jan 2007
Posts: 267
Using pkg_add on alternative host

I am using pkg_add to add packages to a FreeBSD 7.1 install. This command is fetching from ftp.freebsd.org, which is known to be slow from my geographical location. Can I set a variable so that the package is fetched from a host closer to the machine (ftp.xx.freebsd.org)?
  #2 (permalink)  
Old 04-03-2009
RealFreeBSDTips RealFreeBSDTips is offline
Registered User
  
 

Join Date: Jan 2009
Posts: 5
# export PACKAGEROOT=ftp://ftp3.FreeBSD.org
# pkg_add -v -r vim
  #3 (permalink)  
Old 04-03-2009
mercy mercy is offline
Registered User
  
 

Join Date: Feb 2006
Location: msk.ru.earth
Posts: 44
hi,
look in the man
Quote:
Originally Posted by man pkg_add
The environment variable PACKAGEROOT specifies an alternate location for
pkg_add to fetch from. The fetch URL is built using this environment
variable and the automatic directory logic that pkg_add uses when the -r
option is invoked. An example setting would be "ftp://ftp3.FreeBSD.org".

The environment variable PACKAGESITE specifies an alternate location for
pkg_add to fetch from. This variable subverts the automatic directory
logic that pkg_add uses when the -r option is invoked. Thus it should be
a complete URL to the remote package file(s).
  #4 (permalink)  
Old 04-05-2009
figaro figaro is offline
Registered User
  
 

Join Date: Jan 2007
Posts: 267
Thank you for your response. I have since added to my post installation script:
Code:
# set package source location
export PACKAGEROOT=ftp://ftp.xx.FreeBSD.org
where 'xx' is the top level domain of the country of choice.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:55 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0