Le Samedi 10 Mars 2007 04:55, Joachim Schipper a icrit :
> 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;

So when I apply 'pkg_add -u' to a package that was installed through a port I
am not getting and compiling source code (what happened when I made the
original install) but an actual updated binary?  Or am I still missing
something?

> 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

Ok.

What I am messing with here is the clamav package.  Very common indeed.  Now
clamav depends on unarj which does not exist as a package.  So I install it
via ports.  I am trying to figure out how to make an eventual update of
clamav and hence of unarj.  From what I understand, 'pkg_add -u' will not
work on this particular port due to licensing so, from your post, I update
archivers/unarj via, say, cvsup, and then 'make update'?

Pedro

Reply via email to