brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: occ app:update --showonly lists Nextcloud app updates without installing them

Nextcloud
~/tips/tip-nextcloud-occ-app-update-showonly

sudo -E -u www-data php occ app:update --showonly

A dry run for app updates: see what is available before you update one app or all of them.

Updating all Nextcloud apps in one go is convenient until one of them changes something I use. A dry run is cheap.

sudo -E -u www-data php occ app:update --showonly

According to the docs, this shows the available updates without updating anything. When the list looks fine, there are two ways to go on:

sudo -E -u www-data php occ app:update contacts
sudo -E -u www-data php occ app:update --all

The first updates one app, here Contacts. The second updates every app that has an update. So I’d look at the list, update the apps I care about by name, and only then think about --all.

Two related options from the same page are worth knowing. occ app:list --shipped false shows only the apps that did not ship with Nextcloud,. And --allow-unstable lets an update go to an unstable release, as in occ app:update --allow-unstable news. I would not put that one in a routine.

The caveat is simple: --showonly tells you what is available, not what changed in it. For that you still read the release notes of the app, and a backup beforehand is cheap insurance.

Further reading: Nextcloud admin manual: apps, background jobs and config commands

Going deeper: Guide: put Nextcloud behind Nginx Proxy Manager with HTTPS and the right headers

More Nextcloud tips sudo -E -u www-data php occ user:report sudo -E -u www-data php occ background-job:history -s 3 -l 10 docker exec --user www-data nextcloud php occ maintenance:mode --on docker exec -it --user www-data nextcloud php occ user:resetpassword layla docker exec -it --user www-data nextcloud php occ log:watch All Nextcloud tips (13) All topics

Link