John Brooks wrote:
first manually download the package to your machine via ftp.
then run pkg_add against the file you just downloaded. if
something doesn't work, you'll know exactly which part is
failing.
--
John Brooks
[EMAIL PROTECTED]
Hi,
how can I make pkg_add work with http? I already have
PKG_PATH="http://ftp-stud.fht-esslingen.de/pub/OpenBSD/4.0/packages/i386/"
FETCH_CMD="/usr/local/bin/wget"
but pkg_add -v doesn't work.
Best
Martin
pkg_add does all of this for you - without the need for a separate
FETCH_CMD or enclosing PKG_PATH in quotes.
use pkg_add built in smarts to do both for you - use the PKG_CACHE
mechanism to store locally any packages, and pkg_add to "do the right
thing" for you - search first in your downloaded/cached packages, then
on the cdrom (if mounted), and finally get from your chosen mirror:
mkdir /packages/
PKG_ARCH=`uname -s`/`uname -r`/packages/`uname -m`
PKG_PATH=/packages:/cdrom/`uname -r`/packages/`uname
-m`/:http://ftp-stud.fht-esslingen.de/pub/$PKG_ARCH/
PKG_CACHE=/packages/
& this looks like this on my box:
PKG_ARCH=OpenBSD/4.0/packages/i386
PKG_CACHE=/packages/
PKG_PATH=/packages:/cdrom/4.0/packages/i386/:http://ftp-stud.fht-esslingen.de/pub/OpenBSD/4.0/packages/i386/
then you only need to do each time:
pkg_add -iv <pkgname>
& it will be downloaded/installed as needed. on my box the above works
fine - i.e. retrieving packages via http:// is understood by pkg_add -
as documented/expected!
a+
scorch