To change the package mirror on OpenBSD, you can modify the ftp.conf file, which contains the URL of the package mirror.
Here’s how to change the package mirror:
- Open the
ftp.conffile:
sudo nano /etc/installurl
- Change the URL in the file to the desired package mirror:
http://ftp.openbsd.org/pub/OpenBSD
- Save the changes and exit the editor.
Now, when you run the pkg_add or pkg_info command, it will use the new package mirror URL. You can verify this by checking the ftp.conf file for the correct URL.