5

What is the value or URL for PKG_PATH used to inform NetBSD 6.0.1 where to download binary packages from? There seems to be a change in both servers as well as the path or directory layout for the packages directory. I have tried and failed to figure it out. I am using NetBSD on an i386 architecture.

2
  • This should be answered autoritatively at netbsd.org. What makes you think we here know better?
    – vonbrand
    Commented Feb 11, 2013 at 3:18
  • @vonbrand - the netbsd.org documentation is out of date and it rambles on without providing answer simple questions like above.
    – user56041
    Commented Jan 11, 2017 at 22:14

2 Answers 2

5
http://ftp.NetBSD.org/pub/pkgsrc/packages/$(uname -s)/$(uname -m)/$(uname -r|cut -f '1 2' -d.)/All

The above code should work for every version of NetBSD you have.

Source: The PKGSRC WEBPAGE

2
  • The next question is, where do we add it so its exported for whatever shell is default.
    – user56041
    Commented Jan 11, 2017 at 22:15
  • It really depends on the shell in question. The export command (specified in the quickstart section of the website) should work for sh and related shells (I.E, Bash), for csh and tcsh use setenv . I haven't used netbsd in ages, but since pkgsrc is their default package manager that should work out of the box.
    – Demian
    Commented Jan 13, 2017 at 4:11
2

The PKG_PATH is ftp://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/6.0/All/

(stackexchange won't let me enter a short answer, so here goes)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .