OPNsense Forum

English Forums => General Discussion => Topic started by: slair on May 09, 2020, 01:11:27 AM

Title: Determine Latest OPNsense version?
Post by: slair on May 09, 2020, 01:11:27 AM
Is there a way outside of the OPNsense admin interface to check if a new update is available?  We would like to write a script that can dynamically determine if there has been a new patch released for the latest version of OPNsense.

We're just looking for how we can check for a new update, we can handle the scripting part after that!

Thanks all!
Sean
Title: Re: Determine Latest OPNsense version?
Post by: franco on May 11, 2020, 05:30:08 AM
For each major (i.e. 20.1) you need to crawl the mirror:

https://pkg.opnsense.org/FreeBSD:11:amd64/20.1/latest/All/

Glob pattern is "opnsense-[0-9]*.txz". The current version is the stuff between "opnsense-" and ".txz".

In 20.7, FreeBSD ABI changes to FreeBSD:12:amd64.


Cheers,
Franco