OPNsense Forum

Archive => 21.7 Legacy Series => Topic started by: R1mSG on May 02, 2022, 10:26:11 AM

Title: [21.7.8] - CLI update question
Post by: R1mSG on May 02, 2022, 10:26:11 AM
Hey,

how can I check for updates via the CLI?
I would need the same function as under System: Firmware: "Check for Updates".

I have already tried with the following commands:
/usr/local/opnsense/scripts/firmware/launcher.sh check
/usr/local/opnsense/scripts/firmware/check.sh

The problem is that the new update 21.1 is not found at the end.
Somehow it only works via the WEB GUI.

---

OPNsense 21.7.8-amd64
FreeBSD 12.1-RELEASE-p22-HBSD
OpenSSL 1.1.1m 14 Dec 2021
Title: Re: [21.7.8] - CLI update question
Post by: zerwes on May 02, 2022, 03:03:34 PM
have a look at
https://github.com/Rosa-Luxemburgstiftung-Berlin/ansible-opnsense-checkmk/
esp.
https://github.com/Rosa-Luxemburgstiftung-Berlin/ansible-opnsense-checkmk/blob/main/files/firmware_status.py
maybe it helps ...
Title: Re: [21.7.8] - CLI update question
Post by: franco on May 04, 2022, 01:10:16 PM
> The problem is that the new update 21.1 is not found at the end.

I think you mean "22.1" and for CLI you type "22.1" to upgrade. Simple as that. ;)


Cheers,
Franco