Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Jul 2008 13:45:59 +0530
From:      "N. Raghavendra" <raghu@mri.ernet.in>
To:        perryh@pluto.rain.com
Cc:        freebsd-questions@freebsd.org
Subject:   Re: PACKAGESITE
Message-ID:  <86k5fq19og.fsf@riemann.mri.ernet.in>
In-Reply-To: <48798b9d.0bgmwrViDqPyEGdk%perryh@pluto.rain.com> (perryh@pluto.rain.com's message of "Sat, 12 Jul 2008 21:59:09 -0700")
References:  <48798b9d.0bgmwrViDqPyEGdk%perryh@pluto.rain.com>

next in thread | previous in thread | raw e-mail | index | archive | help
At 2008-07-12T21:59:09-07:00, perryh@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@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@mri.ernet.in> | http://www.retrotexts.net/
Harish-Chandra Research Institute   | http://www.mri.ernet.in/
See message headers for contact and OpenPGP information.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86k5fq19og.fsf>