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 hope nothing in the way will truncate it to 80 chars per line, sorry
in advance; plus substitute XX for your favourite mirror, ftp.openbsd.org
doesn't seem to have much bandwidth and IIRC neither did the first mirror
in alphabetical order last time I tried -> http://www.openbsd.org/ftp.html

The quotes are there for a purpose, if you upgrade more systems at once
manually, every step like "edit .profile for new system version" counts.
So don't be lazy and find the backtick on your keyboard layout :-)

To start a new discussion; why is it "OpenBSD/version/packages/arch" and
not "OpenBSD/version/arch/packages", so the list of architectures is
there twice? Historical reasons? I mean, compared to the mess some Linux
distros have in their package management this already is a bless, but
still...

(it's probably irrelevant, so don't bother to start flamewars)

--
Martin Pelikan

Reply via email to