diff options
author | obrien <obrien@FreeBSD.org> | 2001-02-13 09:49:14 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2001-02-13 09:49:14 +0000 |
commit | d3a48cbb8c170c474c811961e6467bd18007fb01 (patch) | |
tree | 4dff1808eb240f6858eba6971606b0f1a7e8ff75 /usr.sbin/pkg_install/add/pkg_add.1 | |
parent | 3ff2537c68b96a1e9179e63fb83f201027b3aac7 (diff) | |
download | FreeBSD-src-d3a48cbb8c170c474c811961e6467bd18007fb01.zip FreeBSD-src-d3a48cbb8c170c474c811961e6467bd18007fb01.tar.gz |
In light of the dismal transfer times from ftp.FreeBSD.org, add a new
`PACKAGEROOT' env var which you would set to a proper mirror of
ftp.FreeBSD.org (say "export PACKAGEROOT=ftp://ftp3.FreeBSD.org"), to
fetch from an alternate place. This is easier to use than `PACKAGESITE'
for true mirrors, and can be used in your dot files across all versions
of FreeBSD.
Diffstat (limited to 'usr.sbin/pkg_install/add/pkg_add.1')
-rw-r--r-- | usr.sbin/pkg_install/add/pkg_add.1 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/usr.sbin/pkg_install/add/pkg_add.1 b/usr.sbin/pkg_install/add/pkg_add.1 index 2aa618a..594fba0 100644 --- a/usr.sbin/pkg_install/add/pkg_add.1 +++ b/usr.sbin/pkg_install/add/pkg_add.1 @@ -407,6 +407,19 @@ or with sufficient space. .Pp The environment variable +.Ev PACKAGEROOT +specifies an alternate location for +.Nm +to fetch from. +The the fetch URL is built using this environment variable and the automatic +directory logic that +.Nm +uses when the +.Fl r +option is invoked. +An example setting would be "ftp://ftp3.FreeBSD.org". +.Pp +The environment variable .Ev PACKAGESITE specifies an alternate location for .Nm @@ -417,6 +430,7 @@ that uses when the .Fl r option is invoked. +Thus it should be a complete URL to the remote package file(s). .Sh FILES .Bl -tag -width /var/db/pkg -compact .It Pa /var/tmp |