Auto update applications?

Hi, is there any way that I can set dietpi to periodically run the updates? Sometimes I can stay weeks from accessing it and I’d like some applications to always keep up to date even if it will reboot automatically on its own etc. that’s fine.

I thought about creating a cron job for running the dietpi-update but not sure if that’s the best option I have — or if it’ll work.

Thank you.

It depends by the application in question. Some more background would be needed.

Basically plex server is the main concern here.

Plex is installed as Debian apt packe from official package repository. Therefore its updated by a simple apt update -y && apt upgrade -y.

In theory, it is possible to enable automatic updates for apt packages via dietpi.txt. However, you should exercise caution here. This means that all available packages will always be updated. This also includes kernel and firmware packages. If errors occur during this process, they may go undetected. It’s something you just have to bear in mind.

Interesting, where do I set this?

What exactly do you mean?

Never mind, found it.