PACKAGESITE

N. Raghavendra raghu at mri.ernet.in
Sun Jul 13 08:22:43 UTC 2008


At 2008-07-12T21:59:09-07:00, perryh at pluto.rain.com wrote:

> Can someone provide a correct example of setting PACKAGESITE so that
> pkg_add will find the 7-stable packages for i386?  I have tried
>
> ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7-stable/Latest/

If you are running 7-STABLE, setting `PACKAGESITE' to the above value
is unnecessary [Handbook, 4.4.1, Note]:

  "pkg_add(1) will download the latest version of your application if
  you are using FreeBSD-CURRENT or FreeBSD-STABLE."

In that case, just the `-r' option to pkg_add(1) will do.

% uname -r
7.0-STABLE
% unsetenv PACKAGESITE
% echo $PACKAGESITE
PACKAGESITE: Undefined variable.
% pkg_add -rv expat
scheme:   [ftp]
user:     []
password: []
host:     [ftp.freebsd.org]
port:     [0]
document: [/pub/FreeBSD/ports/i386/packages-7-stable/Latest/expat.tbz]
---> ftp.freebsd.org:21
looking up ftp.freebsd.org
connecting to ftp.freebsd.org:21
<<< 220 Welcome to freebsd.isc.org.
>>> USER anonymous
<<< 331 Please specify the password.
>>> PASS raghu at griffin.campus.hri
<<< 230 Login successful.
>>> PWD
<<< 257 "/"
>>> CWD pub/FreeBSD/ports/i386/packages-7-stable/Latest
<<< 250 Directory successfully changed.
>>> MODE S
<<< 200 Mode set to S.
>>> TYPE I
<<< 200 Switching to Binary mode.
setting passive mode
>>> PASV
<<< 227 Entering Passive Mode (204,152,184,73,68,212)
opening data connection
initiating transfer
>>> RETR expat.tbz
<<< 150 Opening BINARY mode data connection for expat.tbz (148302 bytes).
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7-stable/Latest/expat.tbz...

Raghavendra.

-- 
N. Raghavendra <raghu at mri.ernet.in> | http://www.retrotexts.net/
Harish-Chandra Research Institute   | http://www.mri.ernet.in/
See message headers for contact and OpenPGP information.



More information about the freebsd-questions mailing list