Firmware update via non-internetconnected method

Started by Ricardo, March 02, 2023, 04:58:34 PM

Previous topic - Next topic
March 02, 2023, 04:58:34 PM Last Edit: March 02, 2023, 05:00:18 PM by Ricardo
Hello folks!

Is there a way to download the installer packages on another machine, and transfer it to the opnsense machine via USB or similar transfer method. So in case the opnsense machine has no internet access during the update (for whatever reason you can imagine), the update could still be initiated using the files transferred to the opnsense machines filesystem, instead of going out to the internet for the download?

Checking the docs for the Update section did not reveal any such details.

You need to make a list of installed packages on the machine you want to update manually by typing this from terminal:

pkg info >list.txt

This will create a file list.txt that contains names of all packages installed on your system. Stick a USB flash drive, mount it, and copy list.txt. Unmount it, and stick it into another machine with internet connection. From that machine go to https://pkg.opnsense.org/ and select a directory matching the version you have installed on the machine that you want to update. Download all packages listed in your list.txt and put them on your flash drive.

Once done, get back to machine you want to update. Stick your flash in it, mount it, change directory to one that contains all your .pkg files you manually downloaded and run:

pkg add *.pkg

What about the base-23.1.xxx , kernel-23.1.xxx , and packages-23.1.<INSERT SSL FLAVOR HERE> files?

I see the files for 22.1 version https://pkg.opnsense.org/FreeBSD:13:amd64/22.1/sets/

but nothing after that. Perhaps someone else can chime in.