How to enable pkg_add for OpenBSD

gitopenbsdpackage-management

I installed and run OpenBSD and I wanted to install git but there were no repositories for OpenBSD. What should I do if I want to install some programs with pkg_add?

Best Answer

On 6.0 and below, add a mirror to the file /etc/pkg.conf:

installpath = http://ftp.eu.openbsd.org/pub/OpenBSD/5.9/packages/amd64/

On 6.1 and later, use the file /etc/installurl:

https://ftp.eu.openbsd.org/pub/OpenBSD/
Related Question