LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   *BSD (https://www.linuxquestions.org/questions/%2Absd-17/)
-   -   Rookie question: NetBSD pkgsrc mirrors... (https://www.linuxquestions.org/questions/%2Absd-17/rookie-question-netbsd-pkgsrc-mirrors-4175711780/)

rkelsen 05-06-2022 08:32 PM

Rookie question: NetBSD pkgsrc mirrors...
 
After a bit of to-and-fro on another thread, I've decided to give NetBSD a go.

Fortunately there are a few local mirrors which host the project... all good.

I'm not sure if this is to do with my geographic location, (far south east [as in 10,000 miles from civilisation]), but the main NetBSD site is slow to the point of being unusable here. Attempting to add pkgin during installation using the default URL results in a timeout.

This is probably a rookie question, but I can't seem to find the location of the pkgsrc directory on the mirrors. Looking in the 'packages' directory reveals a README file which says:
Quote:

This path is no longer valid. Please use:
/pub/pkgsrc/current for the latest sources
/pub/pkgsrc/pkgsrc-<quarter> for the source of the release
/pub/pkgsrc/distfiles for distfiles
/pub/pkgsrc/packages/<OS>/<arch>/<version> for binary packages
OK. But the 'pub/pkgsrc' directory doesn't seem to exist anywhere on the mirrors as far as I can tell... What am I missing here?

hitest 05-07-2022 09:12 AM

Hey rkelson,

Good to see you on the BSD forum. For me I find it easier to enable the installation of binary packages on the NetBSD installation system configuration window. NetBSD has thousands of binary packages available to install with:

# pkgin install packagename

That works like a charm.

http://www.netbsd.org/docs/guide/en/...-configuration

Each to his, her own I just prefer installing packages on FreeBSD, OpenBSD, and NetBSD. I do know there are many people who prefer compiling their own packages.

hitest 05-07-2022 11:11 AM

1 Attachment(s)
NetBSD is quite nifty. :)

Xeratul 05-19-2022 03:42 PM

some examples...

Code:

export PKG_PATH="http://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/amd64/9.2/All/" ;  pkg_add -v pkgin


 export PKG_PATH="http://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/earmv7hf/9.1/All/" ;  pkg_add -v pkgin ; pkgin update ; pkgin update


  export PKG_PATH="http://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/9.1/All/" ;  pkg_add -v pkgin


zaphar 06-17-2022 11:17 PM

(I'm making the assumption that "far South East" is in reference to Asia)
In /usr/pkg/etc/pkgin/repositories.conf
add this line:
ftp://ftp2.jp.NetBSD.org/pub/pkgsrc/packages/NetBSD/$arch/$osrelease/All

If that mirror doesn't work, maybe try a more suitable one from here:
https://netbsd.org/mirrors/

It may be a good idea to log in using ftp to make sure pkgsrc is on the mirror as some may just be NetBSD OS source/images, in addition to other OS images.


All times are GMT -5. The time now is 06:14 PM.