You are not logged in.
Hi,
I recently tried out GDM, and found that I don't like it. I now wish to remove it, along with all the dependencies that were installed along with it.
However, I cannot find a way to list the dependencies of GDM, so that I can remove those as well.
The pacman manual mentioned --cascade and --recursive , however cascade does not list anything else, and recursive includes WAY too many extra packages, many of which I actually need.
Is there a way to remove the packages that were installed along with GDM, but nothing more and nothing less?
Thanks,
James
Offline
Pacman -Qi <gdm package name> will list information including the dependencies. If you need to pick and chose from this list this is probably the best way. I don't know why pacman -Rsn <gdm package name> wouldn't work though. That will remove the package and all of it's dependencies that are not also needed by some other package.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
I'd remove gdm and then use pacman -Qdt to list orphans
Rauchen verboten
Offline
sudo pacman -Rscn gdm
Offline
Be very careful with -Rsc, as this could remove many very important packages it used inapropriatly, I would recommend just pacman -Rs gdm, then check for orphaned packages.
Offline
Be very careful with -Rsc, as this could remove many very important packages it used inapropriatly, I would recommend just pacman -Rs gdm, then check for orphaned packages.
+1
I also remove packages with the -Rs switch. I occasionally check for orphans. In fact, I wrote an 'orphans' function in in my ~/.bashrc for this purpose.
orphans() {
if [[ ! -n $(pacman -Qdt) ]]; then
echo no orphans to remove
else
sudo pacman -Rs $(pacman -Qdtq)
fi
}
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline