OS X is Modified BSD. We Can Use NetBSD Package Manager on OS X for Package Management Just Like We Use Homebrew or Fink or Even apt on OS X. We have previously published guides on install apt on OS X, Homebrew on OS X and this time – NetBSD Package Manager on OS X.
Understanding NetBSD Package Manager on OS X
As like Homebrew, we need to install/update Xcode Command Line Tools first. There are projects on installing and upgrading the package manager on OS X :
1 2 3 4 5 |
http://www.saveosx.org https://www.netbsd.org/docs/pkgsrc/platforms.html#darwin https://github.com/jsonn/pkgsrc http://pkgsrc.joyent.com/install-on-osx/ https://github.com/jdwhite/pkgsrc-darwin/tree/master |
We can use OS X as genuine root user or as admin.
---

Using NetBSD Package Manager on OS X
We need to fetch pkgsrc.tar.xz
from :
1 |
ftp://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc.tar.xz |
Extract as root:
1 |
tar -C /usr --xz -xf pkgsrc.tar.xz |
Bootstrap in this way :
1 2 |
cd /usr/pkgsrc/bootstrap ./bootstrap --compiler=clang --abi=64 --pkgdbdir=/usr/pkg/pkgdb --varbase /usr/pkg/var |
We need to add /usr/pkg/bin
and /usr/pkg/sbin
in PATH shell variable :
1 |
export PATH=$PATH:~/pkg/bin:~/pkg/sbin |
You will get more hints on this github project :
1 |
https://github.com/jdwhite/pkgsrc-darwin/tree/master |
NetBSD Package Manager is not so widely used like Homebrew on OS X, yet it is a different package manager which you can test and use.
Tagged With netbsd packages osx , package manager for os xHere’s what we’ve got for you which might like :
Additionally, performing a search on this website can help you. Also, we have YouTube Videos.
Take The Conversation Further ...
We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!
If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.
Contact Us