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 :
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 :
Extract as root:
tar -C /usr --xz -xf pkgsrc.tar.xz
Bootstrap in this way :
./bootstrap --compiler=clang --abi=64 --pkgdbdir=/usr/pkg/pkgdb --varbase /usr/pkg/var
We need to add
/usr/pkg/sbin in PATH shell variable :
You will get more hints on this github project :
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.
Follow the Author of this article :