On Mon, 02 Nov 2026 16:50:48 +0100,
Leo Unglaub <[email protected]> wrote:
> 
> Hey,
> what is the recommended/official way to define multiple mirrors? I want
> use the official mirror of course, but also two private mirrors that
> contain packages build with internal config files and software packages
> by our CI/CD.
> 
> According to the man page for installurl only the last valid line is
> used, so i assume that's not the way yo go?
> 
> My current version looks like
> $ cat /etc/installurl 
> https://cdn.openbsd.org/pub/OpenBSD
> http://10.1.0.50/internal/OpenBSD
> scp://[email protected]/usr/config-packages
> 
> What would be the correct way of doing this?
> Thanks!
> 

A bit ugly but can work:

   env PKG_PATH=http://10.1.0.50/internal/OpenBSD/%v/%a:installpath pkg_add ...

Here it checks 10.1.0.50 first, and after that uses mirror from /etc/installurl

-- 
wbr, Kirill

Reply via email to