Need some advice/help for upgrading Nextcloud through multiple major versions

Hey all,

This might be a stupid question but I've recently noticed that my install of Nextcloud is (very...) out of date. I'm running 24.0.2 and was planning to update it, however Nextcloud doesn't support an update of multiple major versions and the current one in ports is 27.0.2

Was looking for some advice. Is there a way I can install a version of 25 and 26, then 27 so I can follow the proper upgrade path? I'm pretty FreeBSD proficient and I'm guessing there's a way I can do this via the ports system but don't want to do it a stupid way.
 
If you check out the ports tree with git you can revert the updates to the port. That will allow you to 'downgrade' that port to an older version. Then build that older version of the port.

 
  • Thanks
Reactions: lgs
Ah, thanks, I think I got it kinda sorted by using the above process except git remote add -f origin https://github.com/freebsd/freebsd-ports.git, then git checkout c4d9557b0830c8d4028737d25344456002760586, the hash from the history tab of https://github.com/freebsd/freebsd-ports/commits/main/www/nextcloud. This required, not surprisingly, deleting all packages (from local poudriere) and some local compiling. It seems the nextcloud stack is installed at 26 now and I should be able to upgrade to it from 25, then repeat the process a few times up to 28 before switching everything over the current poudriere build (29).
 
Back
Top