pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: "Please unset PKG_PATH before doing pkgsrc work!" message



I have a small concern that just came to me. For installing pkgin you
are instructed to set PKG_PATH variable:


# PKG_PATH="https://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/$(uname
-p)/$(uname -r|cut -f '1 2' -d.)/All/"
# export PKG_PATH
# pkg_add pkgin

Hi Ramiro. You are a little confused. Not your fault. You need to
set PKG_PATH with that shell incantation so pkg_add will fetch the
default binary version of pkgin and its dependencies for you netbsd
version.  Once you have installed pkgin, you don't have to have
PKG_PATH set.  pkgin will store the repository at
 /usr/pkg/etc/pkgin/repositories.conf.

You allways have to unset PKG_PATH when compiling your packages.
Note that once packages are built, they are treated like any other
binary packages and the basic pkg tools like pkg_add are used to managed
dependencies, &c by the pkgsrc framework.

Regards.
adr.


Home | Main Index | Thread Index | Old Index