On 3/10/07, Joachim Schipper <[EMAIL PROTECTED]> wrote:
On Fri, Mar 09, 2007 at 11:08:30PM -0500, Peter wrote:
> Le Vendredi 9 Mars 2007 18:24, Joachim Schipper a ?crit?:
> > On Fri, Mar 09, 2007 at 06:05:58PM -0500, Peter wrote:
> > > On 4.0, besides uninstalling ports, updating the ports tree, and
> > > re-installing is there any other way to do this?   What is standard
> > > practice?
> >
> > # pkg_add -ui
>
> Are you serious?  I thought that was only for straight packages.  It actually
> fetches code from third party repositories?  The pkg_add man page could be
> clearer but I see it now in ports(7).

It appears we don't really understand each other. The standard way of
updating installed packages is something like

# export PKG_PATH=ftp://ftp.openbsd.org/pub/OpenBSD/snapshots/4.0/i386
# pkg_add -ui

but you are right that this only updates packages. Yes, it does fetch
stuff from third-party repositories if told to, so you could change
PKG_PATH to point to one of your own machines (listing this machine
first, and then the rest, doesn't work as one would like to, though).

Of course, this covers only packages. Almost all ports produce packages
that may be redistributed, but this is not always the case; if not, the
standard procedure is more along the lines of

# cd /usr/ports/archivers/freeze
# make update

or

# cd /usr/ports/archivers/freeze
# make package
# pkg_add -ri /usr/ports/packages/i386/all/freeze-2.5.tgz

which is equivalent, but gives you the time to run any test suites the
port might have before installing it, etc.


I had similar questions I hadn't gotten around to figuring out yet.
These suggestions were exactly what I was looking for.

Greg

Reply via email to