How to change or configure OpenBSD package install mirror

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:

  1. Open the ftp.conf file:
 
sudo nano /etc/installurl
  1. Change the URL in the file to the desired package mirror:
 
http://ftp.openbsd.org/pub/OpenBSD
  1. 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.

Leave a Comment