Open alexander-naumov opened 9 months ago
So, my question is: how to install software inside OpenBSD?
@alexander-naumov as mentioned, sudo
is available. Perhaps not that visible, but it's documented in the openbsd-builder repository [1]. I'm not that familiar with OpenBSD, is doas
what's expected to be used instead of sudo
?
[1] https://github.com/cross-platform-actions/openbsd-builder#openbsd-builder
As far as I understand it (not an OpenBSD user either), doas
is OpenBSD's recommended replacement for sudo
. Given that sudo
's configuration syntax has always been very confusing for me (which is a really bad sign for a security-related tool), I can understand their motivation.
I think a working doas
configuration for OpenBSD would be desirable. I would also keep sudo
as currently configured, to allow for consistent use of sudo
across different systems.
Thank you guys! It works.
BTW I had some similar issues and to unify builds of my projects I have created build-actions script, that does a preparation by installing cmake and a C/C++ compiler. I didn't really intend to promote this as it's mostly for my use cases, but if you want to take a look and get some inspiration:
https://github.com/build-actions/build-actions
It's written in python, so it also has a prepare-environment.sh
script, which installs python.
This works for me on Windows, Linux, Mac, and BSD VMs. If anyone wants to use this or extend that I'm interested in making it better.
Hello, I'm trying to use this action for OpenBSD build. I need to install dependency inside OpenBSD. As I can see, it runs as
runner
user. This user is not allowed to install packages.pkg_add package_name
doesn't work. We get an errorpkg_add: pkg_add must be run as root
. This is correct. Normally we executepkg_add
as aroot
user or viadoas
.doas pkg_add package_name
doesn't work. We get an errordoas: doas is not enabled, /etc/doas.conf: No such file or directory
So, my question is: how to install software inside OpenBSD?