$yay -Rdnss dotnet-host
error: failed to prepare transaction (could not satisfy dependencies)
checking dependencies…
:: removing dotnet-host breaks dependency ‘dotnet-host’ required by dotnet-runtime-6.0
→ exit status 1
somewhere from here i picked up this switch when removing a package. It does not remove the runtime above. I have not paid attention before but i dont want to do anything with dotnet now. how can i achieve it.
EDIT: I know i can chain both the packages in one line or remove runtime first and then the host. however, that is not the point.
i think i picked it up because i want to try to bring the system to the original state before the package was installed. assumed that all the configuration files installed will be deleted
@dalto
Main problem here is that if you use yay while saying yes to “Remove build dependencies?”
if build fails, very annoyingly it doesn’t remove those dependencies…only on successful build it does.
may be i did not understand correctly. here something is already installed which is dotnet-runtime-6.0 and there is no question of build failure. However PHP is in the pacman ignore list because latest build failed for it. hope i am making some sense here.
Lately, I’ve been removing packages simply by running
sudo pacman -R package_name
And then I cleanup unnecessary dependencies (orphans) by running
yay -Yc
Yes, it’s two steps, but I find it easier. I don’t use many AUR packages so removing build dependencies is okay for me. Anything I really don’t want removed, I mark as explicitly installed.