bvdlingen ...But this only does a cleanup once.
Yes, sure, you're right. Many things in Linux may be done in a number of different ways.
I upgrade Solus from terminal only. Using aliases:
alias eu='sudo eopkg upgrade && sync'
alias ed='sudo eopkg delete-cache && sudo journalctl --vacuum-time=3d --vacuum-size=50M && sync'
alias up='eu && ed'
eu
only upgrades, ed
only cleans up, up
does both things. Running one or another gives some degree of freedom in what and when will be done.
It's also not easy for me to remember exact names and locations of numerous config files. On the other hand, aliases are comfortably seat in the single ~/.bashrc-personal
file. I can do whatever I need with it; nothing in the system will ever touch or modify it.
Edit: Typo.