The following page describes the basics of the pkgsrc system as used by DragonFly.
-[[!toc levels=2 ]]
+[[!toc levels=3 ]]
## Overview
**Note**: Sometimes, basic pkgsrc tools, like bmake or pkg_install, need to be upgraded. However, they can't be deleted and replaced since you need that tool to accomplish replacement. The solution is to build a separate package before deletion, and install that package. Inside the packages directory (`/usr/pkgsrc/devel/bmake` in this case)
- # env USE_DESTDIR=full bmake package
+ # env USE_DESTDIR=yes bmake package
# bmake clean-depends clean
And go to the packages directory and install the binary package with
# pkg_add -u <pkg_name> (i.e. the name of the .tgz file).
- # bmake replace USE_DESTDIR=yes
## Start pkgsrc applications on system startup