It is therefore not necessary to install packages on OPNsense, you just need to do the manipulations on an Ubuntu machine (a virtual machine in my case) while you generate the keys and elements that will allow you to connect with wireguard.Is it this ?
The poster with the solution installed their package on Linux, then copied the configuration over. No need to install anything on OPNsense as far as I understand.