Re[3]: FreeBSD && pkg_add
От: aton Россия http://ruby.inuse.ru
Дата: 23.09.05 13:37
Оценка:
Здравствуйте, win, Вы писали:

win>Здравствуйте, aton, Вы писали:


A>>Здравствуйте, win, Вы писали:


win>>>Команда pkg_add -r (чтото) лезет на ftp.

win>>>Каким образом можно подменить адрес ftp с которого забирать пакет?
win>>>Заранее спасибо.

A>>man pkg_add на придмет PACKAGEROOT и PACKAGESITE


win>А можно конкретнее, ибо в моем мане нет таких переменных


хм... на моей системе (FreeBSD 4.10), я получил такое:

....

ENVIRONMENT
The value of the PKG_PATH is used if a given package can't be found. The
environment variable should be a series of entries separated by colons.
Each entry consists of a directory name. The current directory may be
indicated implicitly by an empty directory name, or explicitly by a sin-
gle period.

The environment variable PKG_DBDIR specifies an alternative location for
the installed package database, default location is /var/db/pkg.

The environment variables PKG_TMPDIR and TMPDIR, in that order, are taken
to name temporary directories where pkg_add will attempt to create its
staging area in. If these variables are not present or if the directo-
ries named lack sufficient space, then pkg_add will use the first of
/var/tmp, /tmp or /usr/tmp with sufficient space.

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).
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.