topgrade-rs / topgrade

Upgrade all the things
GNU General Public License v3.0
2.07k stars 141 forks source link

Make a Topgrade Systemd Service or Cron #739

Open JamesClarke7283 opened 8 months ago

JamesClarke7283 commented 8 months ago

Discussed in https://github.com/topgrade-rs/topgrade/discussions/736

Originally posted by **JamesClarke7283** March 8, 2024 ``` I want to make topgrade run every time i boot my computer, but it finishes with errors(errors i dont know how to capture). Could you please share with me a way i can run topgrade on a cronjob that works? ```

Could we have some sort of builtin way to run topgrade periodically? like on boot(unattended-upgrades) or via a cron (every 12 or x hours). It would help my grandad especially who does not know much about computers and i have to do the updates myself every time i come round, would be better if they could optionally be automatic.

scrambler-crypto commented 8 months ago

topgrade --no-retry --cleanup --yes

should be the command you want to run. You can also edit the config file to have those options as default for the topgrade invocation

Lazerbeak12345 commented 4 months ago

Many tools that topgrade interacts with expect user interaction (for example, on arch, pacman). This would not work on those package managers unless unattended upgrade support is added.

Guiraud commented 2 months ago

Hello,

I stupon this too. You can also add --disabled <step> if any answer is needed but not absolutely necessary in topgrade sequence.

There's several options avaible that use the same behaviour :

SteveLauC commented 2 months ago

This comment is not related to the issue.

Perform only the specified steps (experimental)

I guess this option no longer needs to be experimental, let me update the doc.