Martin Pelikan wrote:

> On Thu, Jan 19, 2012 at 06:16:59PM +0100, Francois Pussault wrote:
>> I use this :
>> # echo $PKG_PATH
>> ftp://ftp.openbsd.org/pub/OpenBSD/5.0/packages/sparc64/
> 
> 
> In case someone googles that and would think it's a good idea to set the
> variable like so, here's a better alternative:
> 
> echo 'export PKG_PATH=ftp://ftp.XX.openbsd.org/pub/OpenBSD/`uname
> -r`/packages/`uname -m`/' >> ~/.profile
> 
> for -release and -stable, or
> 
> echo 'export
> PKG_PATH=ftp://ftp.XX.openbsd.org/pub/OpenBSD/snapshots/packages/`uname
> -m`/' >> ~/.profile
> 
> for guess what? -current of course! Even that your -current might not be
> exactly the same one these packages were built on.
> 

I was advised some time ago that using `uname -m` is wrong:
(`arch -s` should be a better choice)

http://marc.info/?l=openbsd-misc&m=131694698627338&w=2

Reply via email to