Beyond that: `pacman -Rsnc` is my "yeet" command. Check the dependent packages carefully. Safer to run this regularly to avoid a build up.
I use `paru` for an AUR helper. Cache cleared manually but could probably be automated too.
I have been running the same install for a couple years and despite my early Linux ignorance and complete abuse of my desktop by experimenting with everything I've only ever had one failed Grub boot that wasn't my own fault.
The only maintenance I do is for btrfs, which I learned the hard way one year after running the system without caring.
It's just a regular `btrfs balance` to ensure the system never run out of metadata space.
Other than that, just `pacman -Syu` and `flatpak update` whenever I feel like I want to.
I rarely clean Pacman's cache because I've been through some cases that I needed to downgrade some packages, and I always uninstall with `pacman -Rs`, so no leftover dependencies. And anything that `paru` installs as build dependencies, I uninstall right after.
Quite a few years back I just started a bash script that stays in my dot files repo, that has all the base packages and configuration in it that I need for a new system. When it's time for a fresh install, I can run that script and have 95% of my system set up. I even include gnome settings and stuff in there using the CLI tools.
Thanks for posing this question, as it should prove instructive.
>how long have you managed to keep your system running smoothly without needing to reinstall?
I'm baffled as to how someone could be a happy user of a system that requires regular reinstalls to be usable/stable.
Is it that installing Arch is itself a hobby for some people?
pacman -Syu
That’s it. :)
Other than that pacman -Syu every couple of weeks.
I'm probably going to start using paccache.
I've never had an arch system explode on me. I've had Debian systems do that. Using arch has been smooth sailing for me for the most part.
Haven't had to do much, really. Just regular package updates (including AUR ones) and cleanup of stale packages. The main laptop gets updates applied frequently, but the backup only once every six months / a year, except security updates (e.g., ssh, OpenSSL, the recent xz backdoor was a no-op because I hadn't ever updated the backup to a vulnerable version). Then there was the KDE 6 release recently.
Every once in a while I go through the list of every package installed and see if I should remove any. This is a no-op for most packages, since they are usually mandatory dependencies of another package, but there's always some packages I'd installed for some limited purpose that no longer applies.
I've cleaned up dead config files a few times. Especially around KDE major version updates. Not that it took up too much space or broke anything; just that I didn't want those files around.
I've kept around a bootable USB key for emergencies, but now that I think about it, I'm surprised I've never had to use it for a system rescue. There was that one time I changed my password and promptly forgot the new one. But it's been such a long time since I've used it.