Looking at this freshports package.
It has the following info, plus a bunch version histories on nextcloud.
PKGNAME: nextcloud-php82
Package flavors (: )
- php82: nextcloud-php82
- php81: nextcloud-php81
- php83: nextcloud-php83
- php84: nextcloud-php84
Questions:
-
What’s the differences between pkg install php82 vs pkg install nextcloud-php82?
Is it first one install just php8.2? Second one install latest version nextcloud and php8.2? -
How do I control the version of next cloud I am trying to install with
pkg install nextcloud-php<XX>
? For example if I would like to install NextCloud 26 with PHP8.2 together, what do I use? -
What does “flavor” and “package” mean? With above package link, I think:
We are installing nextcloud “package”, but you can choose a “flavor” basically the php version you would like. -
Will
pkg install nextcloud-php<x.x>
does a similar process to the official upgrade manually instructions provided by nextcloud? Which includes putting server in maintenance mode, download newer version, change folder permission, moving files and deactivate maintenance mode.
Plan to checkout @dan’s script for some inspiration on how do I manage upgrade NC automatically in the future.
I have a long ways to go to bring my NC to current version. I did research on which PHP version is supported for each NC version. And what other dependencies I need to update. My plans are as following, and I completed NC 24 → 25 without issue. Currently on PHP7.4
[DONE] NextCloud 24 —> 25
PHP 7.4 —> 8.1
NextCloud 25 —> 26 —> 27 —> 28 —>29
PHP 8.3
PostgreSQL 9.4 no longer supported
MariaDB 10.3 and 10.5 are no longer supported.
Web server configuration
Make sure that your web server is serving files with the webp extension (WebP images) correctly as static assets. This is included in the shipped .htaccess file but if you use another web server or custom configuration you need to check this manually.
NextCloud 29 —> 30 —> 31