For example yesterday I tried to install a package from aur.
There was an error:
yarn run v1.22.4 error Couldn't find a package.json in "/home/jm/.cache/yay/fspy/src"
and installation failed.
Are there any rubbish files that should be removed?
Is yay -Sc enough? Will it only remove AUR cache?
What happens if during installation (normal repositories or AUR) there is an error or for example power failure?
And for system in general
I know that I can do
paccache -r or (-ruk0)
For standard package uninstall I do:
It's removing everything with dependences so the system is like before installation?
And if I do:
pacman -S package-xxx
pacman -Rsn package-xxx
Is there only config in my home directory left or there are files that will exist somewhere in my system?
I understand that if package-xxx would change something in my system settings or it won't be reverted.
Or another example
Recently I wanted to test an usb Wi-Fi dongle based on rtl chipset. It requires package that is on AUR
this package requires dependences:
bc, dkms, git
and manual installation of linux-headers for my kernel
I have bc and git packages already.
If I'll install rtl8812au-dkms-git, use usb dongle and do
pacman -Rsn rtl8812au-dkms-git linux-headers
Will it remove the driver, dkms and make my system like before installation?