-2

If I install the ISO from: https://cloudflare.cdn.openbsd.org/pub/OpenBSD/snapshots/amd64/

Then how can I install packages? Or there is no pkg_add method in snapshots?

What do I need to do for example, if I want to install a firefox? compile it? how?

3

If you're following -current (which you are kind of doing if you're installing from a snapshot), you can build ports yourself.

You do this by checking out the ports CVS repository, finding the directory of the port you'd like to build, and issuing make install in that directory as root. This is all well described in the "Porter's Handbook" FAQ (the "Working with Ports" section).

You should also be able to use the ports snapshots from e.g. https://cloudflare.cdn.openbsd.org/pub/OpenBSD/snapshots/packages/amd64/ (if you're on amd64). See pkg_add(1) about how to make pkg_add pick up packages from there (either by using installurl or setting PKG_PATH).

Note that you will need to keep your base system up to date to use the snapshot ports as they are rebuilt every once in a while, and the ports and base system should ideally be kept in sync. When following -stable, or manually rebuilding the base system and ports form checked-out sources, this is simpler than when jumping between snapshots.

  • If I input "cloudflare.cdn.openbsd.org/pub/OpenBSD/snapshots/packages/amd64" to the /etc/installurl and issue a "pkg_add firefox" then I only get an error message that "cloudflare.cdn.openbsd.org/pub/OpenBSD/snapshots/packages/amd64/…: no such dir". - how do I tell pkg_add that it is doing a silly thing? – Hessnov Mar 18 '18 at 12:01
  • 1
    Basically you're over-specifying. You only need: https://cloudflare.cdn.openbsd.org/pub/OpenBSD in the installurl file. OpenBSD figures out if you need snapshots or not (except for close to a release, like we are now, when you will need to specify: pkg_add -D snap firefox). The reason for that, is the snapshots just before a release think they are the release, so they will look for "6.3" (for example) instead of "snapshots" when looking for packages. See man pkg_add for more details. – gabe. Mar 19 '18 at 20:45
0

From https://www.openbsd.org/faq/faq10.html#Patches:

Upgrade your system to -current and use binary packages

Binary packages for -current snapshots are rebuilt on a regular basis, and these new packages will include any security fixes that were committed. Simply call pkg_add(1) with the -u flag after picking a mirror to get the new files.

Make sure to keep the base system updated as well.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.