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.