A small set of tools I created for reasons some time in the past. Most likely they either provide some information, or: I had some oops and wanted to get it fixed.
Will clean up every package which ones got installed as a dependency, but is no longer required. However: Be very careful with it!
It worked for me, at least once, in the past, but it does not mean that pacman
changed its behaviour during the last years.
Once I messed up my installation, and everything I wanted was: Just reinstall every package again, this wil fix it.
And: It worked well, took some time, but worked well. Everything you need to
have it working is pacman itself, and hopefully you did not mess up your /etc
too.
Gives and output similar to this one:
1775 total installed packages.
404 explicitly installed packages.
11 localy installed packages.
132 packages installed as dependencies which are no longer needed.
Your system was originally set up 2010-06-25 15:25.
You are using kernel 6.8.7-arch1-2 and gcc version 13.2.1.
Once I had a PXE / TFTP environment, to quickly reinstall Arch over the network.
I did not use it since years, but it is just downloading the Kernel, its Initrd and some other files need to provide a bootable environment. You need to worry about the remaining parts on your own.