DragonFly BSD
DragonFly users List (threaded) for 2006-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: pkg_add -r ? pkgsrc ? Howto install packages ??

To: Dmitri Nikulin <dnikulin@xxxxxxxxx>
From: Heinrich Rebehn <rebehn@xxxxxxxxxxxxxxxxx>
Date: Tue, 04 Jul 2006 15:25:39 +0200

Dmitri Nikulin wrote:
On 7/4/06, Heinrich Rebehn <rebehn@xxxxxxxxxxxxxxxxx> wrote:
Hi list,

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 prompts).

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...

Dmitri Nikulin

Centre for Synchrotron Science
Monash University
Victoria 3800, Australia

email: dnikulin@xxxxxxxxx

Thanks to all who replied. I have successfully installed bash now.
I should have noticed that the DragonFly Handbook is of August 2004 :-)


[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]