On Tue, Dec 12, 2006 at 01:31:31PM +0100, Francois Visconte wrote:
> Hello,
> I'm searching for a way to automaticaly doing the following actions:
> 1/ update port tree (OPENBSD_4_0)
> 2/ get installed packages and find corresponding ports
> 3/ build this packages from ports.
>
> Maybe i missed the point but i don't find an existing way to do that.
> I'm using the following way to get packages path and flavor from
> installed package
> Is there a better way to do that (throught pkg(1), pkg_info for example) ?
pkg_add -ui does what you want to do. (No, it doesn't go to ports, but
you shouldn't, especially not if you must ask how to do this.)
Joachim