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





El 12/10/25 a las 17:32, adr escribió:
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.

Oh, yes, thanks Adr, I missunderstood it, there is no need to set PKG_PATH permanently.


You allways have to unset PKG_PATH when compiling your packages.

ok.


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.

Thanks so much for clarifying it.
Ramiro.




Home | Main Index | Thread Index | Old Index