Determine Latest OPNsense version?

Started by slair, May 09, 2020, 01:11:27 AM

Previous topic - Next topic
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

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