Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
pkg_add [2015/06/02 11:45]
steve
pkg_add [2015/06/02 11:48]
steve [OpenBSD pkg_add]
Line 37: Line 37:
   * [[pkg_info]]   * [[pkg_info]]
   * [[pkg_delete]]   * [[pkg_delete]]
 +  * [[pkg_mgr]]
 +
 +== Setup package repository ==
 +
 +Before you can install anything from OpenBSD'​s FTP repos, set the ''​PKG_PATH''​ variable. You can set it in ''​.profile''​ to make life easy.
 +
 +<​code>​
 +export PKG_PATH=ftp://​ftp.openbsd.org/​pub/​OpenBSD/​`uname -r`/​packages/​`uname -p`
 +</​code>​
  
 == Install a package == == Install a package ==
Line 42: Line 51:
 <​code>​ <​code>​
 pkg_add bash pkg_add bash
 +</​code>​
 +
 +== Do a dry-run of an installation ==
 +
 +<​code>​
 +pkg_add -n rsync
 </​code>​ </​code>​