## Understand when it is preferable to install a pre-compiled binary and how to do so ##

[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 ###

TODO: Suggest that this be s/binary/package/

Be aware that while pre-compiled binaries
are quick and easy to install, they don't allow the customization
of the binary to a system's particular needs.
Know how to install a pre-compiled binary from either a local or
a remote source, as well as how to uninstall a pre-compiled binary.

TODO: this concept seems to overlap [[Understand_the_difference_between_a_pre-compiled_binary_and_compiling_from_source]]. Maybe reword these (and let Group know).

### Introduction ###

(((packages)))

It's preferable to install a pre-compiled binary when you're running on an older and/or slower machine or your setup is generic enough to not require customization.

pkg\_add: (((pkg\_add))) a utility for installing software package distributions, used to extract packages that have been previously created with pkg\_create (TODO: is pkg\_create for openbsd? is that even applicable for this book?).

pkg\_add pkg\_name [pkg\_name ...] can install the listed packages in pkg\_name

pkg\_add -v pkg\_name turns on verbose output

pkg\_add -n pkg\_name doesn't install package, just reports the steps necessary to do so

pkg\_delete: (((pkg\_delete))) a utility for deleting previously installed software package distributions that were previously installed with the pkg\_add command

pkg\_delete pkg\_name deinstalls named packages

pkg\_delete -a unconditionally deletes all currently installed packages (TODO: what about OpenBSD and pkgsrc?)

pkg\_delete -n pkg\_name lists steps for deinstalling without deinstalling

pkg\_delete -f pkg\_name forces deinstallation even if a dependency is recorded or deinstall fails

TODO: what about pkg\_info (((pkg\_info)))? Where covered in this book?

### Examples ###


### Practice Exercises ###


### More information ###

pkg\_add(1), pkg\_delete(1)


