Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Tutorials and FAQs
»
Question regarding offline upgrades of patch versions
« previous
next »
Print
Pages: [
1
]
Author
Topic: Question regarding offline upgrades of patch versions (Read 2107 times)
bfoss
Newbie
Posts: 6
Karma: 1
Question regarding offline upgrades of patch versions
«
on:
March 11, 2022, 12:05:29 am »
Hi there, I'm currently working on an easy solution to perform offline upgrades of OPNsense by downloading the files I need directly from an available mirror, SCPing them onto my computer running OPNsense, and then using the CLI update tool to perform an update. This works greats until I try and do this process with a patch version of OPNsense. The CLI tool provided by OPNsense doesn't perform the upgrade because it can't find the specific patch version of the `packages` OpenSSl file.
Code:
[Select]
Fetching packages-22.1.2-OpenSSL-amd64.tar: .
failed, no update found
The mirror only provides a `packages` OpenSSL file for the major and minor version but does not provide a Tar file for the patch versions
https://pkg.opnsense.org/FreeBSD:13:amd64/22.1/sets/
. Do I need to Tar these `packages` myself from the nested mirror location
https://pkg.opnsense.org/FreeBSD:13:amd64/22.1/MINT/22.1.2/OpenSSL/All/
?
I feel like I'm misunderstanding something since it seems like the `packages` tar file for each patch version would be included in the mirror by default.
Any advice or clarification would be greatly appreciated!
Logged
franco
Administrator
Hero Member
Posts: 17665
Karma: 1611
Re: Question regarding offline upgrades of patch versions
«
Reply #1 on:
March 11, 2022, 08:27:49 am »
> I feel like I'm misunderstanding something since it seems like the `packages` tar file for each patch version would be included in the mirror by default.
We only need the packages set once for major upgrades since they are handled offline. The remaining updates are online so these are already unpacked.
Otherwise we would be adding excessive amounts of duplicated data on the mirror. It also adds unnecessary amount of uncertainty (or large chunk of QA time to test) whether or not these sets would work in upgrade environments and most of the time minor updates only require a few packages vs. major upgrades requiring to reinstall all packages so downloading all of it from the mirrors would eat up a lot of bandwidth that is not required.
But, yes, you can tar the files inside i.e.
https://pkg.opnsense.org/FreeBSD:13:amd64/22.1/MINT/22.1.2/OpenSSL
to gain a packages set.
Cheers,
Franco
Logged
bfoss
Newbie
Posts: 6
Karma: 1
Re: Question regarding offline upgrades of patch versions
«
Reply #2 on:
March 16, 2022, 06:41:42 pm »
Thanks for the quick and helpful answer! I was able to tar up those files and it seems to be letting me upgrade now.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Tutorials and FAQs
»
Question regarding offline upgrades of patch versions