DragonFly users List (threaded) for 2006-07
Re: pkg_add -r ? pkgsrc ? Howto install packages ??
On 7/4/06, Heinrich Rebehn <rebehn@xxxxxxxxxxxxxxxxx> wrote:
today i decided to give DragonflyBSD another try.
I installed from dfly-1.4.4_REL.iso w/o problems.
I then tried to install bash with
# pkg_add -r bash
and received an error about "-r" being illegal.
suggests using pkg_add -r.
man(1) pkg_add does not mention "-r". To make things more puzzling, it
suggests fetching packages from
So, what's the best way to install packages for DragonFly?
This is an ancient artifact from the FreeBSD packaging system which
DragonFly used until 1.4.0. pkgsrc is a lot more maintainable,
especially with regards to portability across multiple platforms, and
generally not being a ridiculous pain for the administrator (no
seriously, no automated package build system should have interactive
And you should definitely not be fetching packages for NetBSD 2.0!
Here's the correct URL base:
It's on the Download page if you want to find it again. To use it with
NetBSD's/pkgsrc's excellent package tools:
# setenv PKG_PATH
# pkg_add -v vim
(csh style - adjust environment variables for your shell)
Unset PKG_PATH when using pkgsrc to build packages.
More advanced magic, like automated package updating, is documented
elsewhere. Meanwhile this will get you the software you want with no
more effort than the FreeBSD style, except that you do have to know
the base URL of the package tree you're using. Save it in your
~/.cshrc as an alias, if you like...
Centre for Synchrotron Science
Victoria 3800, Australia