LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 05-06-2022, 08:32 PM   #1
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 3,638
Blog Entries: 7

Rep: Reputation: 1896Reputation: 1896Reputation: 1896Reputation: 1896Reputation: 1896Reputation: 1896Reputation: 1896Reputation: 1896Reputation: 1896Reputation: 1896Reputation: 1896
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?
 
Old 05-07-2022, 09:12 AM   #2
hitest
Guru
 
Registered: Mar 2004
Location: Northern Canada
Distribution: Slackware, OpenBSD, FreeBSD
Posts: 7,070

Rep: Reputation: 3437Reputation: 3437Reputation: 3437Reputation: 3437Reputation: 3437Reputation: 3437Reputation: 3437Reputation: 3437Reputation: 3437Reputation: 3437Reputation: 3437
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.
 
Old 05-07-2022, 11:11 AM   #3
hitest
Guru
 
Registered: Mar 2004
Location: Northern Canada
Distribution: Slackware, OpenBSD, FreeBSD
Posts: 7,070

Rep: Reputation: 3437Reputation: 3437Reputation: 3437Reputation: 3437Reputation: 3437Reputation: 3437Reputation: 3437Reputation: 3437Reputation: 3437Reputation: 3437Reputation: 3437
Cool

NetBSD is quite nifty.
Attached Thumbnails
Click image for larger version

Name:	netbsd.png
Views:	22
Size:	102.3 KB
ID:	38866  
 
Old 05-19-2022, 03:42 PM   #4
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,447

Rep: Reputation: 233Reputation: 233Reputation: 233
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
 
Old 06-17-2022, 11:17 PM   #5
zaphar
Member
 
Registered: Nov 2012
Distribution: Slackware
Posts: 31

Rep: Reputation: Disabled
(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.

Last edited by zaphar; 06-17-2022 at 11:25 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
updating pkgsrc on NetBSD? ocicat *BSD 1 07-26-2007 03:58 AM
NetBSD pkgsrc and patches Kristijan *BSD 2 09-16-2006 01:19 AM
NetBSD, pkgsrc: Getting only some of the sources. jaakkop *BSD 2 09-04-2006 08:58 AM
Error installing fluxbox thru pkgsrc OBcecado *BSD 15 04-03-2006 03:58 AM
Slackware Linux with pkgsrc Packages [gentoo-like Slack] Anonymo Slackware 1 12-19-2005 09:46 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 01:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration