## Upgrade installed software ##

[Author](authors.html): _name_ _[[contact]]_ _[[BSD_flavour]]_

[Reviewer](technical_reviewers.html): _name_ _[[contact]]_ _[[BSD_flavour]]_

[Reviewer](technical_reviewers.html): Chris Silva racerx@makeworld.com FreeBSD

----



### Concept ###

Recognize the built-in and third-party commands
which are available for upgrading installed software on BSD systems.
In addition, be able to recognize which BSD systems
use pkgsrc.

TODO: this concept is redundant; if this is about packages should say "packages" and pkgsrc is introduced earlier?

On DragonFlyBSD and FreeBSD, installed packages can be upgraded to their latest versions by running:
pkg upgrade

NetBSD package system, pkgsrc, is used to install or upgrade software. 

On OpenBSD, you can use this command to upgrade all installed packages:
pkg_add -u
Note: The -u switch relies on either the PKG_PATH environment variable to be set or /etc/pkg.conf to be populated with a mirror.


### Introduction ###


### Examples ###


### Practice Exercises ###


### More information ###

Dragonfly and NetBSD provide pkgsrc/pkgtools/pkg\_chk,
pkgsrc/pkgtools/pkg\_comp, make update and make replace; portupgrade, portsnap
and cvsup are available as third-party utilities


