11

How can I install Google Chrome on OpenBSD?

tshepang
  • 64,472
  • 86
  • 223
  • 290
LanceBaynes
  • 39,295
  • 97
  • 250
  • 349

2 Answers2

15

Chrome has been in OpenBSD's ports tree since at least OpenBSD 4.8.

$ doas pkg_add chromium

Should do the trick, assuming your /etc/installurl file is correct or your PKG_PATH environment variable is properly set.

For more information on ports/packages, see here: OpenBSD Packages and Ports System

Kusalananda
  • 320,670
  • 36
  • 633
  • 936
gabe.
  • 11,644
  • 11
  • 44
  • 58
  • Any known issues with Chrome? do you happen to know if it works with AwesomeWM? – Justin Apr 07 '11 at 19:25
  • 1
    @Justin: No major issues while I've been using it. I don't know if it works with AwesomeWM... I use cwm, and it works fine there. – gabe. Apr 07 '11 at 22:20
  • @gabe.: Does plucking tabs out of a window and back again work four you in cwm? They don't want to snap back in for me. – Matej Apr 26 '16 at 14:26
  • @Matej -- nope, doesn't work for me either! – gabe. Oct 11 '16 at 19:34
0

I am just revising the answer for OpenBSD 6.3 which uses 'doas' instead of 'sudo':

  1. modify doas.conf

permit nopass as root

  1. Execute the pkg_add for to install chromium

doas pkg_add -v chromium

  • 1
    Your `doas.conf` has a syntax error (it lacks the identity to permit switching to root as). A sufficient `doas.ronf` may have the line `permit persist setenv { -ENV PS1=$DOAS_PS1 SSH_AUTH_SOCK } :wheel` (allows all `wheel` group users to switch to root). Not requiring passwords at all is a bit lazy, IMHO. – Kusalananda Sep 18 '18 at 06:25