Download and install in one step in OpenBSD

One of the things I love about the package manager in OpenBSD is its ability to make coffee. All you need to do is select the brew you want, the cup size and voila! You do need to set one environment variable to tell pkg_add where to fetch from however:

set PKG_PATH=ftp://ftp.ca.openbsd.org/pub/OpenBSD/4.1/packages/i386/

  Again, make sure you change the version number, use listports to find what you need, then use the following to install the package:

pkg_add [package]

 A mentally challenged, blind kid with no hands could ask somebody totally normal to type this, and it’d work! That’s because the slow kid would read the manual. Normal people don’t read manuals.
This is a blog post by my good friend over at Dexter’s Laboratory. He is a seasoned BSD admin with over 15 years in that field.

Leave a Reply

Your email address will not be published. Required fields are marked *