TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Arch Users – What is your long-term system maintenance routine?

11 点作者 ensocode11 个月前
Hi Community, been a happy Arch Linux user for many years, keeping up with minimal system maintenance and occasionally performing some package cleanups (using commands like pacman -Qtd).<p>I&#x27;m curious about your long-term system maintenance routines. What steps do you take to ensure your system stays stable and up-to-date, and how long have you managed to keep your system running smoothly without needing to reinstall?<p>Thanks for your insights!

12 条评论

pritambaral11 个月前
Been using an install from 2012. Cloned every time I moved laptops or internal storage drives. Two surviving clones, one main laptop and older laptop as home server and backup.<p>Haven&#x27;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 &#x2F; a year, except security updates (e.g., ssh, OpenSSL, the recent xz backdoor was a no-op because I hadn&#x27;t ever updated the backup to a vulnerable version). Then there was the KDE 6 release recently.<p>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&#x27;s always some packages I&#x27;d installed for some limited purpose that no longer applies.<p>I&#x27;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&#x27;t want those files around.<p>I&#x27;ve kept around a bootable USB key for emergencies, but now that I think about it, I&#x27;m surprised I&#x27;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&#x27;s been such a long time since I&#x27;ve used it.
hebocon11 个月前
I installed `paccache` which can automate package cleanup. I configured it to retain only the latest version and only for about a week. Everytime I update I&#x27;m notified of how much space had been freed. I don&#x27;t understand why the default is to retain everything. The likelihood that I need to perform rollbacks&#x2F;reinstalls without internet access is very low.<p>Beyond that: `pacman -Rsnc` is my &quot;yeet&quot; command. Check the dependent packages carefully. Safer to run this regularly to avoid a build up.<p>I use `paru` for an AUR helper. Cache cleared manually but could probably be automated too.<p>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&#x27;ve only ever had one failed Grub boot that wasn&#x27;t my own fault.
评论 #40812939 未加载
mksrew11 个月前
Mine is running just fine since 2022-03-10 (just checked with `btrfs subvol show &#x2F;home`).<p>The only maintenance I do is for btrfs, which I learned the hard way one year after running the system without caring.<p>It&#x27;s just a regular `btrfs balance` to ensure the system never run out of metadata space.<p>Other than that, just `pacman -Syu` and `flatpak update` whenever I feel like I want to.<p>I rarely clean Pacman&#x27;s cache because I&#x27;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.
freedomben11 个月前
It won&#x27;t be a popular answer, but the truth is nuke and pave every so often. The problem isn&#x27;t Arch itself, the problem is that I like to try new things pretty regularly, and occasionally install junk that I don&#x27;t want long-term, but that I forget to clean up.<p>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&#x27;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.
评论 #40812469 未加载
评论 #40818003 未加载
nvy11 个月前
&gt;been a happy Arch Linux user for many years<p>&gt;how long have you managed to keep your system running smoothly without needing to reinstall?<p>I&#x27;m baffled as to how someone could be a happy user of a system that requires regular reinstalls to be usable&#x2F;stable.<p>Is it that installing Arch is itself a hobby for some people?
评论 #40812328 未加载
评论 #40811969 未加载
oDot11 个月前
Your question is partly why I moved to Nix after many years with Arch -- a perpetually clean install
评论 #40811593 未加载
评论 #40811608 未加载
smitty1e11 个月前
I just do `sudo pacman -Syu` more or less daily.<p>Thanks for posing this question, as it should prove instructive.
sshine11 个月前
<p><pre><code> pacman -Syu </code></pre> That’s it. :)
评论 #40813786 未加载
friend_and_foe11 个月前
i keep a list of installed packages and the package manager I used to install them. I don&#x27;t track dependencies that I didn&#x27;t manually install. This is manual, every time I type &quot;pacman&quot; or &quot;yay&quot; or even &quot;pip&quot; I write it down in a text file.<p>Other than that pacman -Syu every couple of weeks.<p>I&#x27;m probably going to start using paccache.<p>I&#x27;ve never had an arch system explode on me. I&#x27;ve had Debian systems do that. Using arch has been smooth sailing for me for the most part.
snapplebobapple11 个月前
Pikaur -Syyu every couple days, dot files managed with yadm, replace computer every 3 or 4 years to get a fresh start.
I_am_tiberius11 个月前
My learning is that using the lts kernel improves the situation with arch big way.
cranberryturkey11 个月前
I just do `yay -Syu` every week or so. What does `-Qtd` do?
评论 #40811598 未加载
评论 #40811541 未加载