OPNsense Forum

English Forums => 25.1, 25.4 Production Series => Topic started by: iorx on March 16, 2025, 08:32:56 PM

Title: Update from shell? Found multiple alternatives
Post by: iorx on March 16, 2025, 08:32:56 PM
Hi!

Found a thread (from 2021, here: https://forum.opnsense.org/index.php?topic=22379.msg106361#msg106361) that was using at command to execute an update later. This method can be a convenient way to postpone an update to nighttime.

It was using:
configctl firmware auto-update | at HHMM mmm DDBut I got an error running "configctl firmware auto-update".
This still a supported method?

Poked around a little bit and found alternatives.
# /usr/local/opnsense/scripts/firmware/update.sh
# opnsense-update
The only doc I found on opnsense-update was the man help.

Which method is the correct one?

Tried 25.1.2 to 25.1.3 with this and it worked. Set the at command just a couple of minutes into the future.
/usr/local/opnsense/scripts/firmware/update.sh | 2003OPNsense rebooted directly after the update and came back up again with 25.1.3.

And... just to check. I tried this again:
configctl firmware auto-updateagain and now it worked without error. Strange.

But question remain, which method is the "the one"? 😉

Brgs!
Title: Re: Update from shell? Found multiple alternatives
Post by: newsense on March 16, 2025, 08:35:38 PM
Option 12 in the OPNsense shell OR through Web GUI
Title: Re: Update from shell? Found multiple alternatives
Post by: iorx on March 16, 2025, 08:50:02 PM
Thank you! That's the interactive way of doing an update.
This is about postponing an upgrade to later and I want to do it from shell.

Btw, also found this through the preset cron jobs. Maybe it's the correct one?
/usr/local/etc/rc.firmware