Tuesday, June 12, 2007

PACKAGESITE for pkg_add -r

As always, this hint is for those who like to take shortcuts, not investigate properly yadayada :D

Problem
: FreeBSD installed a while ago, and now a need arouses to pkg_add some package. Of course, the original release doesn't have that nice pub/FreeBSD/ports/i386/packages-6.0-release/Latest/ directory anymore.

Notes: Of course, this can only be done (I think, since I'm the lame admin) for close releases, and most certainly for one release - 4, 5, or 6..

/bin/sh
export PACKAGESITE="ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.2-release/Latest/"

(of course, replace 6.2 with whatever is needed)
pkg_add -r happily.

No comments: