I did not say PKG_PATH must be set. It does not. pkg_add DOES work when PKG_PATH is not set; it will look in the current directory for packages. When installing packages from the cdrom you purchased, there is no need to set PKG_PATH if you "cd" into the appropriate directory first.
PKG_PATH does NOT need to be a remote site. If you manually download packages with wget or lynx; then you can point PKG_PATH to this directory and install packages from there. pkg_add DOES understand stems. If you download several packages manually; then set PKG_PATH to the directory you used; "pkg_add *" will install all packages in that directory. macintoshzoom wrote: > Hi Frank, Marc, all, > > SOLVED!: > The problem was: > > 1-You say that a PKG_PATH must be set, as there is no default one. OK > Anyway, I tested with and without PKG_PATH. > > 2-I am testing a FETCH_CMD using wget, which it seems it don't > understand "stems" as yes ftp does (the default OpenBSD fetcher). > So for pkg_add via wget I have to specify the package name including > extension (must test more about this): > > # pkg_add -v -i bmp-0.9.7p13.tgz > blahblah > bmp-0.9.7p13: complete > # > > Thanks for your help. > > May be I got confused by pbrowser which yes, if you don't start it with > the command -p "PKG_PATH" (or setup the path from its Edit>Package Path > menu) it fetch everything from OpenBSD.org by default, a clever option > for newbies. > > So, if I don't specify somewhere the PKG_PATH, pkg_add and probably also > make will not work! > > This is why pkg_add didn't understand stems. > > BUT this way a newly installed OpenBSD would not be able to install > anything till the new user finds how to and set-up a PKG_PATH. > An added pain for new users. > Why not a preset OpenBSD.org PKG_PATH? > To minimize and distribute traffic so individual servers are under less > strain fetching could be done via an automated mirror's load balancer > system, a metalink system http://www.metalinker.org/ or similar else. > > Mac > > > Frank Bax wrote: >> macintoshzoom wrote: >>> After updating to OpenBSD 4.4-current (GENERIC.MP), rebuilt userland, >>> I am preparing my attack to the updating of my installed packages and >>> ports. >>> >>> I got an issue probably related to syntax or eventually to my >>> sophisticated experimental proxy environment (everything via tor). >>> >>> I tested also doing # export PKG_PATH= <empty> , just to let the >>> system to check for the OpenBSD.org proper site if in need to verify >>> or fetch something. >>> >>> # pkg_add kdelibs >>> Can't resolve kdelibs >>> # >>> >>> What could be wrong? >> >> >> >> Where did you get the idea that PKG_PATH=<empty> will search >> openbsd.org? It does not. >> _______________________________________________ >> Openbsd-newbies mailing list >> [email protected] >> http://mailman.theapt.org/listinfo/openbsd-newbies >> > > _______________________________________________ Openbsd-newbies mailing list [email protected] http://mailman.theapt.org/listinfo/openbsd-newbies
