To change an OpenBSD installation/update mirror path in OpenBSD 6.1, you need to edit the file
/etc/installurl that you have created at installation time.
So to change the mirror you are using, edit
/etc/installurl and change it to:
The /etc/installurl file contains a single line specifying an OpenBSD
mirror server URL, such as https://ftp.openbsd.org/pub/OpenBSD It is
created by the installer script during installations and upgrades over
An alternate way is also setting
PKG_PATH as in:
export PKG_PATH="http://ftp.eu.openbsd.org/pub/OpenBSD/$(uname -r)/packages/$(arch -s)/"
installpath = ftp.eu.openbsd.org