I installed hyprland to try it out but it was too much for me so now I want to uninstall it, but it is just refusing to uninstall.
When I try yay -Rns hyprland it gives me error target not found. I tried yay -R, pacman -R and -Rns, this thing just doesnt want to go away. What do I do
How did you install it ? Basically, that’s how you should uninstall it. The possibilities are endless, however, you can probably get a hint by querying the package database, pacman -Qs hyprland.
Once you have the name right, you can remove it.
I installed it using hyprland-git. This is so embarrassing, I really forgot how I installed this thing even though I researched about it for hours before installing it…
In the future, you can search for installed packages with a combo of Grep and Pacman:
pacman -Q | grep -A 0 -E "(hypr|xdg|wofi)"
You can add more packages as needed by separating them with |.
You should probably still do this because there are likely other packages you installed for Hyprland, but won’t need for whatever DE/WC/WM you switch to.
On Arch, this command may not help you find which package you need to uninstall.
For instance, if the OP ran that command, it would return /usr/bin/hyprland. When they go to uninstall it by typing sudo pacman -R hyprland they would get the same error they posted, because the actual package name is hyprland-git.
The which command is mostly only useful for finding the location of a package on Arch Linux.
And Pacman can do that as well with pacman -Ql hyprland, which gives a lot more info.
hyprland /usr/
hyprland /usr/bin/
hyprland /usr/bin/Hyprland
hyprland /usr/bin/hyprctl
hyprland /usr/bin/hyprland
hyprland /usr/bin/hyprpm
hyprland /usr/include/
hyprland /usr/include/hyprland/
hyprland /usr/include/hyprland/protocols/
hyprland /usr/include/hyprland/protocols/alpha-modifier-v1.hpp
hyprland /usr/include/hyprland/protocols/cursor-shape-v1.hpp
AND WAY MORE LINES
Or by using pacman -Qo hyprland which tells you the owner of the package, and tells you the actual package name. So use this instead, if you prefer not to use Grep for some reason.
/usr/bin/hyprland is owned by hyprland 0.47.2-2
/usr/bin/paru is owned by paru-git 2.0.4.r61.g55efaab-1