Post Al7qsJW5GChAROMEM4 by thelastpsion@bitbang.social
 (DIR) More posts by thelastpsion@bitbang.social
 (DIR) Post #Al7plVLykhpVAgovKq by thelastpsion@bitbang.social
       2024-08-19T12:54:31Z
       
       0 likes, 0 repeats
       
       Does anyone know of a reliable/safe way of cleaning up an #ArchLinux installation? I've done a `pacman -Qtdq`, but it's coming up with packages that I'm pretty sure would break the system if they were removed.Of course, I should probably just wipe the machine and reinstall, but I don't have the energy. Oh, for a declarative Arch installation...
       
 (DIR) Post #Al7q4VsJ2PdSI50NGq by miah@hachyderm.io
       2024-08-19T12:57:54Z
       
       0 likes, 0 repeats
       
       @thelastpsion When you say "clean up" what do you imagine?
       
 (DIR) Post #Al7qsJW5GChAROMEM4 by thelastpsion@bitbang.social
       2024-08-19T13:06:57Z
       
       0 likes, 0 repeats
       
       @miah I'm just concerned that I have a lot of packages on the machine that have been orphaned, where unneeded dependencies haven't been removed (upgraded and uninstalled packages). But I don't entirely trust the pacman dependency database... which is probably an indication that I should just rebuild the machine.
       
 (DIR) Post #Al7sQ6ENGKNZ2IkRn6 by hagarashi8@allthingstech.social
       2024-08-19T13:24:14Z
       
       0 likes, 0 repeats
       
       @thelastpsion pacman -Qtdq will only show files installed as dependencies and unused, so it's probably fine, but you can manually review list by just piping result in text file and removing things you think will break something when deleted from list. Then you can pipe this file to pacman -Rns. It's safest way not including checking every package from pacman.
       
 (DIR) Post #Al7toN8e9T50NWCtzU by DodoTheDev@front-end.social
       2024-08-19T13:39:37Z
       
       0 likes, 0 repeats
       
       @thelastpsion That's what I've used. OhMyZSH wikis also shows `sudo pacman -Rs $(pacman -Qtdq)` which seems more or less what you've done. Otherwise I'm out.
       
 (DIR) Post #Al8JEI08N93mpQgFM0 by oxiurus@mastodon.social
       2024-08-19T18:24:38Z
       
       0 likes, 0 repeats
       
       @thelastpsion I use #aura as package manager: https://github.com/fosskers/auraAnd I rely on 'aura -Oj' to clean up orphan packages. Never disappointed me.
       
 (DIR) Post #Al8ZKUk3VwYlLa8n8i by thelastpsion@bitbang.social
       2024-08-19T21:25:04Z
       
       0 likes, 0 repeats
       
       @oxiurus I've not heard of aura before - I'll have to have a look. Do you know how it compares to paru?
       
 (DIR) Post #Al8ZoRZHsWLKBwNufg by oxiurus@mastodon.social
       2024-08-19T21:30:11Z
       
       0 likes, 0 repeats
       
       @thelastpsion yes, I do know actually. I myself used puru and migrated to aura. I think the later is much better. Aura has better defaults and also has nice extras, like the "aura deps" feature in which you can literally map ( a map figure) all dependencies of a package and vice-versa.
       
 (DIR) Post #AlCUqMIKjXbrHEO7k0 by thelastpsion@bitbang.social
       2024-08-21T18:53:37Z
       
       0 likes, 0 repeats
       
       @oxiurus `aura check` has already helped me clean up my two Arch systems, removing long-dead packages and tidying pacnew files. I'm looking forward to delving deeper. Thank you for the recommendation!